Time error
This is my coding
import java.util.Scanner;
public class Basic3 {
public static void main(String[] args) {
System.out.println("Please enter your name:");
Scanner input = new Scanner(System.in);
String name = input.next();
System.out.println("Hello " + name);
}
}
But I got this error
Output:
Please enter your name:
Error: Command failed: timeout 7 java Basic3
how to solve this can any one pls help me
2 Answers
6 months ago by Vishnu Priya