This file contains hidden or 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.*; | |
| class Test | |
| { | |
| public static void main(String[] args) | |
| { | |
| //人数分の変数を宣言しなければならない | |
| int a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,....,a100; | |
| double ave; |
This file contains hidden or 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
| class Testjg{ | |
| public static void main(String[] args)throws IOException{ | |
| int temp = 0; //配列の中の数値を入れておく変数 | |
| BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
| System.out.println("何人分の点数を入れますか"); | |
| //キーボードで入力された分だけの引き出しをもつ配列(タンス)を作成 |