public static boolean nullEquals(String s1,String s2){
  return (s1 == null ? s2 == null : s1.equals(s2));
}

public static boolean nullEquals ( String s1 , String s2 ) { return ( s1 == null ? s2 == null : s1 . equals ( s2 ) ) ; }
equals ( ) with two strings where either could be null
