public static String readlineFromStdIn ( ) throws IOException { StringBuilder ret = new StringBuilder ( ) ; int c ; while ( ( c = System . in . read ( ) ) != ' ' && c != - 1 ) { if ( c != ' ' ) ret . append ( ( char ) c ) ; } return ret . toString ( ) ; }
Reads a line from standard input .