question: public static boolean parseBoolean ( String s ) { char ch = s . length ( ) > 0 ? s . charAt ( 0 ) : 0 ; return ( ch == '1' || ch == 't' || ch == 'T' ) ; }
target:  Return if a string starts with '1', 't', or 'T' and return false otherwise.