Code example for StreamTokenizer

Methods: ordinaryCharslashSlashComments

		this(new FileReader(fileName));
	/** Construct from an existing Reader */ 
	public SimpleCalcStreamTok(Reader rdr) throws IOException {
		tf = new StreamTokenizer(rdr);
		// Control the input character set: 
		tf.slashSlashComments(true);	// treat "//" as comments
		tf.ordinaryChar('-');		// used for subtraction
		tf.ordinaryChar('/');	// used for division
		s = new Stack();
	/** Construct from a Reader and a PrintWriter 
	public SimpleCalcStreamTok(Reader in, PrintWriter out) throws IOException {
Connect your IDE to all the code out there  Get Codota for Java