Search:

Type: Posts; User: ryan12345

Search: Search took 0.09 seconds.

  1. Thread: Hashmap

    by ryan12345
    Replies
    6
    Views
    1,753

    Re: Hashmap

    My apologies if I caused offence, I will do so in the future. I certainly do value your replies and advice.
  2. Thread: Hashmap

    by ryan12345
    Replies
    6
    Views
    1,753

    Re: Hashmap

    I've come up with this:



    public static void listCars()
    {
    for (String key : cars.keySet()) {
    for (int x=0; x < (cars.get(key)).size(); x++)
    {
    ...
  3. Thread: Hashmap

    by ryan12345
    Replies
    6
    Views
    1,753

    Re: Hashmap

    That's great thanks. Quick question, how would I go about looping through the associated ArrayList of Strings?
  4. Thread: Hashmap

    by ryan12345
    Replies
    6
    Views
    1,753

    Hashmap

    I have a hashmap which currently contains people's names as keys and then has a string arraylist as the values which are the peoples currently owned cars.

    For example:

    Tom: BMW, Audi
    John:...
Results 1 to 4 of 4