fork(1) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. int sokutei_kekka[][] = new int [3][2] ; // 要素数2の配列を3つ要素とする二次元配列の宣言と実体作成
  14.  
  15. sokutei_kekka[0][0] = 168 ; // kintarou
  16. sokutei_kekka[0][1] = 68;
  17.  
  18. sokutei_kekka[1][0] = 182 ; // momotarou
  19. sokutei_kekka[1][1] = 72;
  20.  
  21. sokutei_kekka[2][0] = 160 ; // kaguya
  22. sokutei_kekka[2][1] = 45;
  23.  
  24. for (int i = 0; i < 3; i++) {
  25. System.out.print("出席番号 = ");
  26. System.out.print( i );
  27. System.out.print(" 身長 = ");
  28. System.out.print( sokutei_kekka[i][0]);
  29. System.out.print(" 体重 = ");
  30. System.out.println( sokutei_kekka[i][1]);
  31. }
  32.  
  33.  
  34.  
  35.  
  36. }
  37. }
  38.  
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
出席番号 = 0身長 = 168体重 = 68
出席番号 = 1身長 = 182体重 = 72
出席番号 = 2身長 = 160体重 = 45