Search:

Type: Posts; User: aiojou

Search: Search took 0.07 seconds.

  1. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    2891
    2892

    and updated operations file that only has one input.
  2. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    2890
  3. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    2888
    2889

    here are the two files.
  4. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    okay. I just edited my post. Hope that makes it better.
  5. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    Okay another problem.

    I thought I could use the switch statements to get the first char and then when received/identified do specific things like move it to certain parts of the heap...it's not...
  6. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    Thank you! That fixed it! :)
  7. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    I am having problems with my switch statement.



    //get the other file
    //need to read in this file, get the first token and check it

    String operation;

    try {
  8. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    Thank you Cornix for your reply. I understand that they are two different things. In my second post I stated but not completely explained that I need to do the assignment as a priority heap. I...
  9. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    Thank you I figured it out just didn't reply, but your way is cleaner. Also, is there a way to do a Heap with a Hashmap?? The only examples I see are with arraylists
  10. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    Yes. I am having problems. I only know how to set my split to spaces, seeing that I only know how to set to spaces. the key is set correctly to the number AKA the first item in the array, but the...
  11. Replies
    24
    Views
    1,488

    Re: Help with hashmap and heap

    I want the number to be the key and the name to be the value. Because the other file (below) has numbers not names.



    I 10 990
    i 38 100
    i 371 364
    i 70 335
    I 391 12
    I 3138 77
  12. Replies
    24
    Views
    1,488

    Help with hashmap and heap

    Hello,

    I would like to read in this file: (just a small piece of it for example)


    723 Light, Matt
    70 Mankins, Logan
    391 Maroney, Laurence
    7743 Aiken, Sam
    521 Alexander, Eric
Results 1 to 12 of 12