Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Hashtable;

public class Main {
    public static void main(String[] args) {
        Hashtable<String, String> ht = new Hashtable<String, String>();
        ht.put("1", "One");
        ht.put("2", "Two");
        ht.put("3", "Three");

        boolean blnExists = ht.containsKey("2");
        System.out.println("2 exists in Hashtable ? : " + blnExists);
    }
}