fork download
  1. import java.util.Scanner;
  2. class Ideone
  3. {
  4. public static void main (String[] args) throws java.lang.Exception
  5. {
  6. Scanner stdIn = new Scanner(System.in);
  7. System.out.println("X=?");
  8. int x;
  9. x = stdIn.nextInt();
  10. System.out.println("X は "+x+"です.");
  11.  
  12. }
  13. }
Success #stdin #stdout 0.21s 60916KB
stdin
87
stdout
X=?
X は 87です.