Last active
October 8, 2016 12:48
-
-
Save mokomokohitsuzi/1c6b4972a1881abd053a5fdffc325ac8 to your computer and use it in GitHub Desktop.
新・明解Java入門 演習2-10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class En2_10 { | |
public static void main(String[] args){ | |
Scanner stdIn = new Scanner(System.in); | |
//キーボドからString型で読み込む。 | |
System.out.print("性:"); | |
String sei = stdIn.next(); | |
System.out.print("名:"); | |
String mei = stdIn.next(); | |
System.out.println("こんにちは"+sei+mei+"さん。"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment