- 1
public class main { public static void main(String[] args) { Scanner scan = new Scanner(System.in) ; System.ou
public class main { public static void main(String[] args) { Scanner scan = new Scanner(System.in) ; System.out.println("enter your name"); String input = scan. nextline(); System.out.println(input); } } What's wrong with my code??
2 Respuestas
+ 9
import java.util.Scanner;
public class main
{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in) ;
System.out.println("enter your name");
String input = scan. nextLine();
System.out.println(input);
}
}
+ 1
Thanks you soo much