Code example for Scanner

Methods: nextFloat

0
	 * Reads a single floating-point variable from the console. 
	 *  
	 * @return the float value read from the user 
	 */ 
	public static float readFloat() { 
		return scn.nextFloat();
	} 
}