//Enter and Display Text
import java.util.Scanner;
public class text
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String name;
System.out.println("Enter your name");
name=sc.nextLine();
System.out.println("Hello Friends,I am "+ name +".");
}
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.