How to delete duplicate numbers in an array? (Java) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to delete duplicate numbers in an array? (Java)

Java https://code.sololearn.com/c1XMabTFScJI/?ref=app

4th Apr 2018, 5:37 PM
Nikita Kobyzhskiy
Nikita Kobyzhskiy - avatar
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
4th Apr 2018, 5:44 PM
Scooby
Scooby - avatar