Rotate your phone or change to desktop for better experience

Rotate your phone or change to desktop for better experience

Java input program

 import java.util.Scanner

public class Test {

    public static void main(String[] args)
    {
        //PROOGRAM TO TAKE A SIMPLE INPUT FROM THE USER

        System.out.print("Enter your Name : ");

        Scanner sc = new Scanner(System.in);

        String name = sc.nextLine();

        System.out.println("your name is : "+name);

       
    }
}

Post a Comment

0 Comments