기본 콘텐츠로 건너뛰기

java 배열 생성및 초기화

String [] strArray;


 //배열 생성해 할당하면(초기화) 배열의 주소가 들어가게 된다.
 strArray = new String[10];

for(int i=0; i < result.size(); i++){
  strArray[i] = result.get(i).getEqId();
}

댓글