API (1) 썸네일형 리스트형 ArrayList에서 add Method 분석 add(Object o) Appends the specified element to the end of this list Throws: IndexOutOfBoundsException - if index is out of range (index size()). add(Object o) Appends the specified element to the end of this list. 먼저 영문을 볼때 해석에 주의 해야겠다. 위의 add Method는 class java.util.ArrayList의 Method이다. 위의 두 Method의 차이점에 대해서 생각해 보자. 같은 Method이지만 arguments에 따라서 Overloading 된다. 중요한 점은 add(int index.. 이전 1 다음