반응형 java array2 [자바AP연습문제]06.Arrays [자바AP연습문제]06.Arrays *06.Arrays에 대한 복습은 아래 "더보기" 클릭 더보기 An array is consecutive storage for multiple items of the same type like the top five scores in a game. You learned how to declare arrays, create them, and access array elements. Array elements are accessed using an index. The first element in an array is at index 0. Array - An array can hold many items (elements) of the same type. You can a.. 2024. 3. 24. [자바기초.011] 배열과 리스트 비교(Array vs List) [자바기초.011] 배열과 리스트 비교(Array vs List) [1] 언제 배열 or 리스트를 사용하나? (배열과 리스트 선언하기_Declare) 배열 선언(Declare Array): 저장할 데이터 타입이 같고, 개수가 정해져 있을 때 리스트 선언(Declare List): 저장할 데이터 타입이 같고, 개수가 정해져 있지 않아 데이터를 삭제하거나 새롭게 추가할 때 HTML 삽입 미리보기할 수 없는 소스 [주의] 위 코드와 같이 배열이나 리스트를 선언(Declare)하는 것만으로는 실제로 배열과 리스트가 만들어지는 것은 아니다.배열 객체나 리스트 객체에 대한 참조(reference)만 하는 것일 뿐이다. [2] 배열과 리스트 만들기(Creating) 선언된 배열 변수를 이용해 배열을 만들기: new .. 2024. 3. 13. 이전 1 다음 728x90 반응형