Write a java program to print Your Name On Screen
[ Initialization of Variables]
Answers
Answered by
4
Answer:
import java.util.*;
class UserInputDemo1.
{
public static void main(String[] args)
{
Scanner sc= new Scanner(System.in); //System.in is a standard input stream.
System.out.print("Enter a string: ");
String str= sc.nextLine(); //reads string.
Similar questions
English,
2 months ago
Social Sciences,
2 months ago
Computer Science,
2 months ago
Math,
5 months ago
English,
5 months ago
Hindi,
10 months ago
Math,
10 months ago