Find duplicate number in array in Java

preview_player
Показать описание
Find the duplicate numbers in an array
Рекомендации по теме
Комментарии
Автор

Thank you very much! I got stuck on starting the for loop int i = 0 which made an error for me. This helped a lot :).

Boolaboy
Автор

Thank you very much for this video. It helped me with my programming assignment.

warriorpx
Автор

The above program will work as expected only when the numbers are only repeated 2 times else it will give output more than 1 time. Suppose 3 is repeated by 4 times in array then output will be .
O/P :-
Duplicate number is: 3
Duplicate number is: 3
Duplicate number is: 3
so it is redundant to show same msg more than once.

ankitkumarmjis
Автор

What if we want to determine the number of duplicates? How do we write that code? Please give me an answer!

victormeyer
join shbcf.ru