Set
HashSet중복 X , 순서 X=> 저장순서를 유지하고 싶으면 LinkedHashSet사용해야 됨add나 addAll메서드로 추가해야 하는데 중복된 요소 저장하면 false 반환함import java.util.*;public class HashSetLotto { public static void main(String[] args) { Set set = new HashSet(); Set linkSet = new LinkedHashSet(); for(int i = 0; set.size() [0, 2, 3, 5, 6, 7][0, 3, 5, 2, 7, 6]import java.util.*;class Bingo { public static void main(Str..
2025. 4. 17.