public boolean isSame(String s1,String s2){
  if (s1 == null)   return s2 == null;
 else   if (s2 == null)   return false;
 else   return s1.equals(s2);
}

public boolean isSame ( String s1 , String s2 ) { if ( s1 == null ) return s2 == null ; else if ( s2 == null ) return false ; else return s1 . equals ( s2 ) ; }
is it the same
