티스토리 뷰
ArrayList는 java.util 패키지에 포함된 크기 재지정이 가능한 배열이다. 자바에서 array와 ArrayList의 차이는 크기 변경이 가능 유무로, ArrayList는 사용자가 원할 때 요소에 대한 추가와 삭제가 가능하다.
- W3schools
The ArrayList class is a resizable array, which can be found in the java.util package.
The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified (if you want to add or remove elements to/from an array, you have to create a new one). While elements can be added and removed from an ArrayList whenever you want.
출처
반응형
'기술(Tech, IT) > 자바(Java)' 카테고리의 다른 글
[Java] 전역 변수(Global variable) (0) | 2022.09.18 |
---|---|
[Java] 생성자(Constructor) (0) | 2022.09.14 |
[Java] JAR(Java Archive) (0) | 2021.09.18 |
[Java] instanceof (0) | 2021.08.23 |
[Java] String, StringBuilder, StringBuffer (0) | 2021.07.06 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 머신 러닝
- Android
- join
- machine learning
- defaultdict
- C++
- I2C
- 이코노미스트 에스프레소
- socket programming
- tf-idf
- vertex shader
- 투 포인터
- 리트코드
- 이코노미스트
- Python
- 딕셔너리
- 소켓 프로그래밍
- The Economist
- Computer Graphics
- leetcode
- 오블완
- java
- ml
- Hash Map
- The Economist Espresso
- DICTIONARY
- min heap
- 안드로이드
- 파이썬
- 티스토리챌린지
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함
반응형