public static boolean equal(Object a,Object b){
  return a == b || (a != null && a.equals(b));
}

public static boolean equal ( Object a , Object b ) { return a == b || ( a != null && a . equals ( b ) ) ; }
returns true if two possibly - null objects are equal .
