JavaArraysEx Remove DuplicatesOn this pageEx Remove DuplicatesDescriptionGet from the user a bunch of numbers until user press 0, and after that, remove the remove duplicates numbers from the original and print out output.ExampleInput - [2,1,1,3,2,7,2,3,8,0]Output - [2,1,3,7,8]More challengeMake the same but for strings