Array
int[] score;//배열 선언
score = new int[5];//int형 값 5개를 저장할 수 있는 배열 생성
//배열의 선언과 생성을 한 번에!
int[] score = new int[5];int[] score = {50, 60, 70, 80, 90};//new int[] 생략가능!
int[] score;
score = {50,60,70,80,90};//에러! new int[] 생략할 수 없다!
score = new int[] {50,60,70,80,90};//OK!Last updated