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
Science,
4 months ago
Computer Science,
4 months ago
Math,
8 months ago
Physics,
11 months ago
History,
11 months ago