question: public boolean isTrue ( String condition ) { boolean result = false ; if ( condition != null && condition . length ( ) > 0 ) { String s = condition . substring ( 0 , 1 ) ; if ( s . equalsIgnoreCase ( "Y" ) || s . equals ( "1" ) || s . equalsIgnoreCase ( "T" ) ) result = true ; } return result ; }
target:  convert string into boolean