Java 썸네일형 리스트형 Queue MethodExplain Object element() 삭제없이 저장된 요소를 읽어온다. queue가 비어있을 시 Exception을 발생시킴 boolean offer(Object o) Queue에 객체 저장 후 성공 여부를 반환 Object peek() 삭제 없이 읽어 오며 Queue가 비었을 시 null을 반환 Object poll() Queue에서 꺼내오며 비어있을 시 null을 반환 Object remove() Queue에서 꺼내오며 비어있을 시 Exception을 발생 시킴 더보기 Stack MethodExplain boolean empty() Stack이 비어있는지 확인 Object peek() Stack의 맨 위에 저장된 객체를 반환. 꺼내지는 않으며 비어있을 시 null 반환 Object pop() Stack의 맨 위에 저장된 객체를 꺼냄 Object push(Object Item) Stack에 객체를 저장 int search(Object o) Stack에서 주어진 객체를 찾아 그위치를 반환 더보기 LinkedList MethodExplain LinkedList() LinkedList 객체 생성 LinkedList(Collection c) 주어진 Collection을 포함하는 LinkedList 객체 생성 void add(int index, Object element) 지정된 index에 객체 추가 boolean add(Object o) 지정된 객체를 LinkedList의 끝에 추가 boolean addAll(Collection c) 주어진 Collection에 포함된 모든 요소를 LinkedList의 끝에 추가 boolean addAll(int index, Collection c) 지정된 index에 주어진 Collection에 포함된 모든 요소 추가 후 성공 여부 반환 void addFirst(Object o) 객.. 더보기 Vector & ArrayList MethodExplain Vector() 크기가 10인 Vector를 생성 Vector(Collection c) 주어진 Collection을 저장할 수 있는 생성자 Vector(int initialCapacity) Vector의 초기용량을 지정할 수 있는 생성자 Vector(int initialCapacity, int capacityIncrement) 초기용량과 용량의 증분을 지정할 수 있는 생성자 void add(int index, Object element) 지정된 index에 객체를 저장 boolean add(Object o) 객체 저장 후 저장 성공 여부 반환 boolean addAll(Collection c) 주어진 Collection의 모든 객체를 저장 boolean addAll(int ind.. 더보기 Map.Entry Interface MethodExplain boolean equals(Object o) 동일한 Entry인지 비교 Object getKey() Entry의 key 객체를 반환 Object getValue() Entry의 value 객체를 반환 int hashCode() Entry의 Hash Code를 반환 Object setValue(Object value) Entry의 Value 객체를 지정된 객체로 변경 더보기 Map Interface MethodExplain void clear() Map의 모든 객체를 삭제 boolean containsKey(Object key) 지정된 Key 객체와 일치하는 Map의 Key 객체가 있는지 확인 boolean containsValue(Object value) 지정된 Value 객체와 일치하는 Map의 Value 객체가 있는지 확인 Set entrySet() Map에 저장되어 있는 Key-Value 쌍을 Map.Entry Type의 객체로 저장한 Set으로 반환 boolean equals(Object o) 동일한 Map인지 비교 Object get(Object key) 지정한 Key 객체에 대응하는 Value객체를 찾아 반환 int hashCode() Hash Code 반환 boolean isEmpty.. 더보기 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.. 더보기 StringBuffer Method Method Comment StringBuffer() 16문자를 담을 숭 있는 Buffer를 가진 StringBuffer Instance를 생성한다. StringBuffer(int length) 지정된 개수의 문자를 담을 수 있는 Buffer를 가진 StringBuffer instance를 생성한다. StringBuffer(String str) 지정된 문자열 값을 갖는 Instance를 생성한다. StringBuffer append(boolean b) StringBuffer append(char c) StringBuffer append(char[] str) StringBuffer append(double d) StringBuffer append(float f) StringBuffer append(int .. 더보기 이전 1 2 3 다음