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!"); } }
1 Answer
+ 4
Looks right
You can put in code playground to run it