[문제] 11월 9일 (HashSet, hashcode, ThreeSet )
1. 아래의 출력이 나오도록 만드시오. public class HashPerson { public static void main(String[] args) { HashSet hSet = new HashSet(); hSet.add(new Person("LEE", 10)); hSet.add(new Person("LEE", 10)); hSet.add(new Person("PARK", 35)); hSet.add(new Person("PARK", 35)); System.out.println("저장된 데이터 수: " + hSet.size()); //System.out.println(hSet); } } /* 저장된 데이터 수: 2 [LEE(10세), PARK(35세)] */ import java.util...
수업문제
2021. 11. 10. 00:19
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- compareTo
- string
- 참조형
- 쿠키
- Servlet
- 부트스트랩
- SOCKET
- 쓰레드
- Session
- 제네릭
- Request
- 입출력
- 세션
- 래퍼 클래스
- toString
- 사칙연산 계산기
- exception
- object
- 채팅
- hashset
- 프로토콜
- TreeSet
- response
- Generic
- el
- 예외처리
- JSP
- abstract
- equals
- 진척도 70번
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함