0

Am i right?

import java.util.Scanner; class MyClass { public static void Main(String[ ] args) { Scanner inputinfo = new Scanner(System.in); System.out.println("what is ur name?"); String inputname = inputinfo.nextLine(); System.out.println("What is ur age?"); String inputage = inputinfo.nextLine(); System.out.println("So your name is "+inputname+"and u are "+inputage+"years old!"); } }

21st Jan 2019, 10:29 AM
Tzion
Tzion - avatar
1 Answer
+ 4
Looks right You can put in code playground to run it
21st Jan 2019, 10:40 AM
Gordon
Gordon - avatar