Saturday, June 20, 2015

Java–Input

using Scanner

 

package Normal;
import java.util.Scanner;

public class InputOutput {
public static void main(String[] args) {
System.out.println("Please Input : ");

Scanner objScanner=new Scanner(System.in);

int a =objScanner.nextInt();

System.out.println(a);
}

}

No comments:

Post a Comment