Code example for String

Methods: trim

0
 	return input.readLine();
 } 
 static protected String getChemicalSymbol (BufferedReader input) throws IOException {
 	char buffer[] = new char[symbolSize];
  Error.assertTrue(symbolSize == input.read(buffer, 0, symbolSize));
  String s = new String(buffer);
  return s.trim();
 } 
static protected int getInteger (BufferedReader input) throws IOException {
 	char buffer[] = new char[integerSize];
  Error.assertTrue(integerSize == input.read(buffer, 0, integerSize));
  String s = new String(buffer);
  java.lang.Integer integer = new java.lang.Integer(s.trim());
  return integer.intValue();
 } 
static protected double getDouble (BufferedReader input) throws IOException {
 	char buffer[] = new char[doubleSize];
  Error.assertTrue(doubleSize == input.read(buffer, 0, doubleSize));
  String s = new String(buffer);
  java.lang.Double real = new java.lang.Double(s.trim());
Contextual code suggestions in your IDE  Get Codota for Java