Write a program in Java to input a name and display the name
Answers
Answered by
0
Answer:
Islamism premal palak salam kelel karma
Answered by
4
Answer:
import java.util.Scanner;
class NameExample {
public static void main(String[]args)
{
String name;
Scanner sc = new Scanner (System.in);
System.out.println("Enter the name");
name = sc.nextLine();
System.out.println(name);
}
}
Similar questions