Question: The following program will compile but it has run-time errors. Find and fix the errors. import java.util.Scanner; public class Input_personal _data Public static void main(Stringl)
The following program will compile but it has run-time errors. Find and fix the errors. import java.util.Scanner; public class Input_personal _data Public static void main(Stringl) args) Scanner k- new Scanner(System.in); String s1 "Enter your full name:":S int age; System.out.print (sl); name k.nextLine0: System.out.print (s2); age k.nextlntO: name.toUpperCase): System.out.println" Your name in upper case is: "+name String s2 - "Enter your age:" String name; + and you are .. + age + years old")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
