배열 선언 및 생성
public class ArrayTest {
public static void main(String[] args) {
String name[] = new String[5];
// String name[] = new String[]{"임꺽정","강감찬","이순신","율곡","신사임당"};
name[0] = "임꺽정";
name[1] = "강감찬";
name[2] = "김수호";
name[3] = "율곡";
name[4] = "신사임당";
for(int i=0;i<name.length;i++){
System.out.println(name[i]);
}
}
}