Code example for Scanner

Methods: nextDouble

0
		return(scanner.nextFloat());		
	} 
	public static double scanDouble(String out)
	{ 
		System.out.print(out);
		scanner = new Scanner(System.in);
		return(scanner.nextDouble());		
	} 
 
	public static boolean scanBoolean(String out)
	{ 
		System.out.print(out);
		scanner = new Scanner(System.in);
		return(scanner.nextBoolean());		
	} 
	 
	public static char scanChar(String out)
	{ 
		System.out.print(out);
		scanner = new Scanner(System.in);
		return(scanner.next().charAt(0));