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 | 31 |
Tags
- Stack
- c#
- cocos2d-x
- 상수변수
- 입출력
- interface상속
- Thread
- singleton
- db
- c++게임엔진
- Exception
- 프로그래밍
- Interface
- unity
- Class함수
- cocos2d
- oracle
- 예외던지기
- 문자열
- 예외처리
- 게임엔진
- 데이터타입
- 스레드
- java
- 반복문
- c++
- C/C++
- cocos2dx
- 데이터베이스
- 동기화블럭
Archives
- Today
- Total
목록Collections (1)
초보 프로그램 개발자
[ 4주차 ] Java - 다른 Collections 맛보기
Set Set s = new HashSet(); Set은 중복값을 허용하지 않는다. 사용방법은 다른 Collections들과 같다. Set s = new HashSet(); s.add("서울"); s.add("부산"); s.add("대구"); System.out.println(s); // 서울 부산 대구 출력 // iterator 사용법 또한 같다. Iterator it = s.iterator(); while(it.hasNext()) { String str = it.next(); System.out.print(str + " "); // 서울 부산 대구 출력 } // 중복을 허용하지 않아 출력시 서울 부산 대구 만 출력된다. s.add("서울"); System.out.println(s); Stack Sta..
교육 일지/java
2023. 5. 25. 17:50