The following program will compile but it has run-time errors. Find and fix the errors.
import java.util.Scanner; public class Input { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int age; String name; System.out.println(“Enter your age.”); age = keyboard.nextInt(); System.out.println(“Enter your full name.”); name = keyboard.nextLine(); name.toUpperCase(); System.out.println(“Your name in uppercase is ” + name + “ and you are ” + age + “ years old.”); } }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.