Package tools

Examples of tools.ScanReader


    //systemInTest();
  }

  public static void stringTest () {
    String s="          123.123\n123.123d  \n123";
    sr = new ScanReader(new StringReader(s));
    scanDouble();
    scanDouble();
    scanDouble();
    scanDouble();
  }
View Full Code Here


    scanDouble();
  }

  public static void fileTest () throws Exception {
    FileReader f = new FileReader("test");
    sr = new ScanReader(new BufferedReader(f));
    scanByte();
    scanByte();
    scanId();
    scanId();
    scanDouble();
View Full Code Here

    scanString();
  }

  public static void systemInTest () {
    Reader we = new BufferedReader(new InputStreamReader(System.in));
    sr = new ScanReader(we);
    scanDouble();
    scanDouble();
    scanDouble();
  }
View Full Code Here

TOP

Related Classes of tools.ScanReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.