Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by Jeroen Vannevel for Best way to compare multiple fields of objects...

Here is a method to do it with Reflection:public class Test { public static void main(String[] args) { Person person1 = new Person(); person1.name = "Jack"; person1.age = 18; person1.favoriteSuperhero...

View Article


Best way to compare multiple fields of objects in java?

I want to compare 2 object as same class,i want to konw What's the difference between two filed of the object,for example,public class Person{ private String name; private int age; ......}Person...

View Article

Browsing latest articles
Browse All 2 View Live