Search:

Type: Posts; User: sehudson

Search: Search took 0.01 seconds.

  1. Re: How to create and use Hashtable, ArrayList (really urgent, please)

    The HashMap example I gave you is setup such that the key is a String, and the Value is an ArrayList of Strings.
    So, to add your books, you would need to first create the arraylist, add books to it,...
  2. Re: How to create and use Hashtable, ArrayList (really urgent, please)

    You have the right idea if you want to use a HashMap:



    HashMap<String, ArrayList<String>> categoryMap = new HashMap<String, ArrayList<String>>();


    Then, to add entries to the map, you would...
Results 1 to 2 of 2