Question: 0 1 / / This program won't compile, on which line is the issue? 0 2 import java.util.Scanner; 0 3 public class MidTerm { 0

01// This program won't compile, on which line is the issue?
02 import java.util.Scanner;
03 public class MidTerm {
04 public static void main(String [] args){
05
06
07
08
09
10
11
12
Scanner input = new Scanner(System.out);
String nName ="";
System.in.print("Please enter your name: ");
nName = input. next();
}
System.in.println("Your name is: "+ nName);
}
8,11
4
5
5,8,11
4,5,8,11
 01// This program won't compile, on which line is the issue?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!