Code example for Scanner

Methods: nextFloat

0
 
	/** 
	 * Return the next float from the input stream. 
	 */ 
	public double readFloat() { 
		return scanner.nextFloat();
	} 
 
	/** 
	 * Return the next long from the input stream. 
	 */ 
	public long readLong() { 
		return scanner.nextLong();
	} 
 
	/** 
	 * Return the next byte from the input stream. 
	 */ 
	public byte readByte() { 
		return scanner.nextByte();