0
Write your name in Java lenguage
5 Answers
+ 9
poo in loo
0
import java.util.Scanner;
public class Name {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Enter your name: ");
String name = s.next();
System.out.println("Hello " + name);
}
}
0
import java.util.scanner;
class Name{
public static void main(string[ ]args){
scanner in=new scanner(system.in);
System.out.println("Enter your name:");
string name=s.next();
System.out.println("Hello" + name);
}
}
0
import java.util.Scanner;
public class Name {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Enter name: ");
String name = s.next();
System.out.println( name);
}
}
0
please write a name of yours