intermediate/HashExplore

From ggc

Jump to: navigation, search

01 package intermediate;
02 //start auto-imports
03 import java.util.*;
04 //end auto-imports
05 
06 
07 /**
08  * All about my application.
09  @author Jam Jenkins
10  */
11 public class HashExplore
12 {
13   public static void main(String[] args)
14   {
15     HashSet<String> dictionary=new HashSet<String>();
16     dictionary.add("Jam");
17     dictionary.add("Jenkins");
18     dictionary.add("Jelly");
19     if(dictionary.contains("Jelly"))
20     {
21       System.out.println("Jelly is tere.");
22     }
23     else
24     {
25       System.out.println("No jelly doughnuts for you.");
26     }
27   }
28 }


Download/View intermediate/HashExplore.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter