⧠amazing...
åç°¿ã¨ã4次å é åã«ãªã£ã¡ãããã...
å¦çæ代ã¯é¥ãå½¼æ¹ã®æãåºã¨ãªã£ãã®ã¯ãã¦ç½®ããå¦æ ¡ã®åç°¿ã¨ãä½ãã¨ãªãã¨æ®éã«4次å é åã«ãªã£ã¦ãã¾ããã¨ã«æ°ä»ãã¦æç¶ã¨ããä»æ¥ãã®é ã§ãã
ã£ã¦ãªæãã§ã4次å ã
4éã®ã«ã¼ãã¯ããã¤...
ãªãã¸ã§ã¯ãæåãªã4次å é åã¨ãåé¿ã§ããã¨ã¯æããã©
ã¾ãããªãã¸ã§ã¯ãæåã¨ã使ãã°ã4éã«ã¼ãã¨ãé¿ãããã¨ã¯æãã®ã ãã©ãæ¢ãã¦4éã«ã¼ãã«ãã¦ã¿ã¾ããã
ããã¾ãã4éã«ã¼ãã£ã¦è¦ãªãã®ããã£ãã®ã§ã
package lesson; public class Dimention4thArray { public static void main(String[] args) { Object[][][][] fourDimArr = { { { {"ä½è¤"}, {"é´æ¨"} }, { {"å è¤"}, {"梨æ¨"} } }, { { {"ä¼è¤"}, {"西æ¨"} }, { {"æ¨è¤"}, {"çæ¨"} } }, { { {"å¾è¤"}, {"è¤æ¨"} }, { {"åè¤"}, {"ç¾æ¨"} } } }; for (int i = 0; i < fourDimArr.length; i++) { for (int j = 0; j < fourDimArr[i].length; j++) { System.out.println("ã" + (i+1+"å¹´") + (j+1+"çµ") + "ã"); for (int k = 0; k < fourDimArr[i][j].length; k++) { for (int l = 0; l < fourDimArr[i][j][k].length; l++) { System.out.print(fourDimArr[i][j][k][l]); } System.out.println(); } } } } }
⧠ã§å®è¡ãã¦ã¿ãã
å ¨ã¯ã©ã¹2人ããããªãã£ã¦ã©ãã ãéçåãã¦ããã ã£ã¦ã®ã¯å ãè§ãå ¨å¦å¹´ã®åç°¿ã£ã½ãã®ã§ãããã§ã¯ããã¾ãã
ã¨ã¯è¨ãããã£ã±ã4éã«ã¼ãã¯ã©ãèãã¦ãç¡ãã ããªï½ã¨æã次第ã§ãããã
æ¯åº¦ã¢ã¤ã¢ã¤æãå端ãªã...
ä»åã¯ãã®ã¸ãã§ã
Â
Â