KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ashkelon > util > HashtableTest


1 /*
2  * Created on Aug 17, 2004
3  */

4 package org.ashkelon.util;
5
6 import java.util.*;
7
8 /**
9  * @author Eitan Suez
10  */

11 public class HashtableTest
12 {
13    public static void main(String JavaDoc[] args)
14    {
15       Properties props = new Properties();
16       props.put("One", "Ehad");
17       props.put("One", "Un");
18       System.out.println(props.get("One")); // produces "Un", meaning that
19
// putting values with an existing key overwrites old value with new one
20
}
21
22 }
23
Popular Tags