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();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE