I have a function in one of my classes that compares itself with another instance of the same class - and finds out which variables differ. This is for the purpose of minimi
Use StringUtils provided by apache
StringUtils.equals(myString,comparisonObj.myString);