반응형
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
- InputDialog
- ID중복
- interrupted()
- StringReader
- include 지시자
- Daemon()
- char[] String 형변환
- 상관 서브 쿼리
- ObjectInputStream
- first-of-child
- sleep()메소드
- 스레드그룸
- first-child
- Linux셋팅
- isinterrupted()
- include지시자
- include액션태그
- 동기화
- 메모리스트림
- interrupt()
- 리눅스세팅
- StringWriter
- Linux세팅
- 표현 언어
- 리눅스셋팅
- 상관서브쿼리
- ThreadGroup()
- 아이디중복
- MemoryStream
- String char[] 형변환
Archives
- Today
- Total
목록HashSet (1)
다연이네
[days22] 컬렉션 클래스<Set> - HashSet
HashSet Collection 0번째 가져오겠다 의미 없다 [문제] 로또번호 6개 만들어 출력 HashSet lottos = new HashSet(6); Random rnd = new Random(); while (lottos.size()!=6) { int lotto = rnd.nextInt(45)+1; lottos.add(lotto); } System.out.println(lottos); [문제] 로또 번호를 받아 정렬된 번호로 출력 => ArrayList로 만들기 (LinkedArrayList도 상관 없음) Set set = new HashSet(); //업캐스팅이 더 좋은 코딩이다 for (int i = 0;set.size() 만약, 중복 체크를 해서 안되도록 만들고 + 순서 유지하는 컬렉션 클..
Java
2020. 10. 21. 09:31