Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 |
Tags
- Method
- dynamic programming
- Binary Search
- greedy
- 파이썬
- sorting
- hash table
- 구현
- Data Structure
- 코테
- Binary Tree
- 자바
- SQL
- Class
- Matrix
- string
- 코딩테스트
- geometry
- Stack
- Counting
- java
- two pointers
- Math
- Number Theory
- bit manipulation
- implement
- simulation
- Tree
- database
- array
Archives
- Today
- Total
목록constraint (1)
코린이의 소소한 공부노트
지네릭 클래스의 예시와 제한
[Iterator] - 클래스를 작성할 때 Object타입 대신 T와 같은 타입 변수를 사용한다. // 일반 클래스// 지네릭 클래스 public interface Iterator{public interface Iterator{ boolean hasNext();boolean hasNext(); Object next();E next(); void remove();void remove(); }} // 생성 및 사용 Iterator it = list.iterator();Iterator it = list.iterator(); while(it.hasNext()){while(it.hasNext()){ Student s = (Student)it.next();Student s = it.next(); // 타입 불일치로..
Java
2022. 11. 14. 13:46