배열에서 ArrayList 생성하는법
조회수 3387회
소스코드
제가
Element[] array = {new Element(1), new Element(2), new Element(3)};
이라고 초기화를 시켰는데 이 배열을
ArrayList<Element> arraylist = ???;
여기서 어떻게 넣어요?
제가
Element[] array = {new Element(1), new Element(2), new Element(3)};
이라고 초기화를 시켰는데 이 배열을
ArrayList<Element> arraylist = ???;
여기서 어떻게 넣어요?
댓글 입력