public static boolean parseBoolean(String s){
  char ch=s.length() > 0 ? s.charAt(0) : 0;
  return (ch == '1' || ch == 't' || ch == 'T');
}

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