private String getName ( String s1 , String s2 ) { if ( s1 == null || "" . equals ( s1 ) ) return s2 ; else return s1 ; }
If the first String parameter is nonempty return it else return the second string parameter .