Code example for Scanner

Methods: nextnextInt

0
	} 
	 
	public void changeName() 
	{ 
		System.out.println("What would you change number :");
		Scanner sc = new Scanner(System.in);
		chnum = sc.nextInt();
		System.out.println("What would you change name :");
		chname = sc.next();
		name.set(chnum,chname);
		 
	} 
	 
	public void addNumber() 
	{ 
		System.out.println("What would you add number product :");
		Scanner sc = new Scanner(System.in);
		anum = sc.nextInt();
		bnum = anum+start;
		for(int j=1;j<=anum;j++)
Contextual code suggestions in your IDE  Get Codota for Java