question: public static String readString ( ) { if ( isEmpty ( ) ) throw new RuntimeException ( "Reading from empty input stream" ) ; StringBuilder sb = new StringBuilder ( ) ; while ( ! isEmpty ( ) ) { char c = readChar ( ) ; sb . append ( c ) ; } return sb . toString ( ) ; }
target:  Reads the remaining bytes of data from standard input and return as a string. 