New course! Every coder should learn Generative AI!
Try a free lesson0
How to delete duplicate numbers in an array? (Java)
2 Answers
+ 6
first start a loop and check if number == others numbers then assign them a garbage value like= -875687587...
and start a loop to print without those garbage value numbers