+ 1
I have an array of objects , now i want to add a new object to that array by checking if the value is unique . how ?
array of objects of another class
4 Respostas
+ 2
add the Comparable interface to you obj. and implement it.
0
could u write a sample code for it . Please
0
I'm in hurry today. Which is the reason that I only got you the official reference.
Although I hope it helps.
https://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html
0
thank you for your help