Code example for Scanner

Methods: nextDouble

0
		 
	} // end of main method 
	 
	public static int getTest1() 
	{ 
		Scanner input = new Scanner (System.in);
		System.out.printf("\n\nEnter Test 1:");
		return input.nextDouble();
	}	// end of method test1 
	 
	public static int getTest2() 
	{ 
		Scanner input = new Scanner (System.in);
		System.out.printf("\n\nEnter Test 2:");
		return input.nextDouble();
	}	// end of method test2  
 
	public static int getTest3() 
	{ 
		Scanner input = new Scanner (System.in);
		System.out.printf("\n\nEnter Test 3:");