Blogger

Delete comment from: Javarevisited

javin paul said...

you can use the same method, go through integer array, store them as key in HashMap and when put return false, its a duplicate because HashMap doesn't allow duplicate keys. Are you getting any error doing this?

Mar 3, 2020, 2:11:57 AM


Posted to How to loop through an Array in Java? Example Tutorial

Google apps
Main menu