로딩
요청 처리 중입니다...

JAVA 자바 | class, HashMap, keySet, iterator

 JAVA 자바 | class, HashMap, keySet, iterator

3년전에 작성한 글입니다. 자바 10주차 실습입니다. mport java.util.*; class Student { int id; String tel; public Student(int id, String tel) { this.id = id; this.tel = tel; } } public class HashMapStudentEx { public static void main(String[] args) { HashMap map = new HashMap(); map.put("황기태", new Student(1, "010-111-1111")); map.put("하원선", new Student(2, "010-222-2222")); map.put("이영희", new Student(3, "010-333-3333")); System.out.println("HashMap의 요소 개수: " + map.size()); Set...

# 과제 # 자바