본문 바로가기

List Interface MethodExplain void add(int index, Object element) boolean addAll(int index, Collection c) 지정된 index에 객체 또는 Collection에 포함된 객체들을 추가 Object get(int index) 지정된 index에 있는 객체 반환 int indexOf(Object o) 지정된 객체의 index 반환(첫 번쨰 요소부터 순방향) int lastIndexOf(Object o) 지정된 객체의 Index 반환(마지막 요소부터 역방향) ListIterator listIterator() ListIterator listIterator(int index) List의 객체에 접근할 수 있는 ListIterator를 반환 Object remove.. 더보기
Collection Interface MethodExplain boolean add(Object o) boolean addAll(Collection c) 지정된 객체나 Collection의 객체를 Collection에 추가 void clear() Collection의 모든 객체를 삭제 boolean contains(Object o) boolean containsAll(Collection c) 지정된 객체나 Collection의 객체를 Collection에 포함 되어 있는지 확인 boolean equls(Object o) 동일한 Collection인지 비교 int hashCode() Collection의 hash code를 반환 boolean isEmpty() Collection이 비어있는지 확인 Iterator iterator() Colle.. 더보기
Math Class Method Method Comment static double abs(double a) static float abs(float f) static int abs(int f) static long abs(long f) 주어진 값의 절대값을 반환한다. static double ceil(double a) 주어진 값을 올림하여 반환한다. static double floor(double a) 주어진 값을 버림하여 반환한다. static double max(double a, double b) static float max(float a, float b) static int max(int a, int b) static long max(long a, long b) 주어진 값을 비교하여 큰 쪽을 반환한다. static double.. 더보기