Skip to content

Instantly share code, notes, and snippets.

@AuroraNorthernQuarter
Last active November 3, 2018 13:41
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 AuroraNorthernQuarter/32e420fa55470972fd651cb7f9dbd27c to your computer and use it in GitHub Desktop.
Save AuroraNorthernQuarter/32e420fa55470972fd651cb7f9dbd27c to your computer and use it in GitHub Desktop.
package testprogramm;
import java.util.Scanner;
public class Sample {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
while (true) {
System.out.print("値を入力してください: ");
// キーボードから整数の入力を受け取る
int score = scan.nextInt();
if (●●●) {
《「Language.java」からひらがなを呼び出すコード》
} else if (▲▲▲) {
《「Language.java」からアルファベットを呼び出すコード》
break;
} else if (■■■) {
break;
}
}
scan.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment