Code example for Scanner

Methods: nextnextInt

0
		 
	} 
	 
	 
	public void ChangeName(){ 
		Scanner t = new Scanner(System.in);
		 
		System.out.print("What product you change : ");
		int m = t.nextInt();
		int n = m-1;
		name[n] = t.next();
		 
	} 
	 
	 
	public void AddTotal(){ 
		Scanner t = new Scanner(System.in);
		System.out.print("What product to Addtotal : ");
		int h = t.nextInt();
		System.out.print("How many you want Add : ");