ex) String [] name = new String[3];
[ ๋ณ์ ํ์
์ ๋ฐ๋ฅธ ๊ธฐ๋ณธ๊ฐ]
ex)
String [] name = {"kim", "kang", "hyun"}; //new String[] ์๋ต ๊ฐ๋ฅ
ex) int[][] score = new int [4][3]; // 4ํ 3์ด์ 2์ฐจ์ ๋ฐฐ์ด
ex)
int [][] arr = { {1,2,3}, {4,5,6} }; //new int[][]๊ฐ ์๋ต
int [][] arr = {
{1,2,3},
{4,5,6}
};
//์ด ๋ฐฉ๋ฒ์ ๋ ๋ง์ด ์ฌ์ฉ