Getting User Input in java

Learn how to Getting User Inputs in java

import java.util.Scanner;
public class ScannerForInputs {
public static void main(String arg[]){
Scanner malik = new Scanner(System.in);
System.out.println(malik.nextLine());
}

}

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.