0

Scanner problem

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner Inputinfo= new Scanner (System.in); System.out.print("What is your name ??"); String Name=Inputinfo.nextLine (); System.out.print("Your school"); String School1=Inputinfo.nextLine(); System.out.print("whats your age please"); int Age=Inputinfo.nextint (); System.out.print("your name is "+Name+"you are in school "+School1+"and you are "+Age+"year old");

15th Jul 2018, 9:55 AM
JIBRILLA ALANJIRO
JIBRILLA ALANJIRO - avatar
1 Answer
0
nextInt();
17th Jul 2018, 9:24 PM
wando br
wando br - avatar