Skip to content

Instantly share code, notes, and snippets.

@mokomokohitsuzi
Created October 1, 2016 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mokomokohitsuzi/3327dd30ee0676e0fd60268c3eed83bf to your computer and use it in GitHub Desktop.
Save mokomokohitsuzi/3327dd30ee0676e0fd60268c3eed83bf to your computer and use it in GitHub Desktop.
新・明解Java入門 演習2-3
import java.util.Scanner;
public class En2_3 {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
System.out.print("整数値:");
int seisu = stdIn.nextInt();
System.out.println(seisu + "と入力しましたね。");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment