자바 HashTable

에어컨 (토론 | 기여)님의 2021년 10월 18일 (월) 17:35 판 (새 문서: ==개요== ; ; ; * <syntaxhighlight lang='java' run> import java.io.*; import java.util.*; class AddElementsToHashtable { public static void main(String args[]) { H...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

import java.io.*;
import java.util.*;
  
class AddElementsToHashtable {
    public static void main(String args[])
    {
        Hashtable<Integer, String> ht1 = new Hashtable<>();
        Hashtable<Integer, String> ht2
            = new Hashtable<Integer, String>();
        ht1.put(1, "one");
        ht1.put(2, "two");
        ht1.put(3, "three");
  
        ht2.put(4, "four");
        ht2.put(5, "five");
        ht2.put(6, "six");
  
        System.out.println("Mappings of ht1 : " + ht1);
        System.out.println("Mappings of ht2 : " + ht2);
    }
}

2 같이 보기

  • [[ ]]
  • [[ ]]
  • [[ ]]
  • [[ ]]
  • [[ ]]
  • [[ ]]

3 참고

[[분류: ]] [[분류: ]]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}