2891
2892
and updated operations file that only has one input.
Type: Posts; User: aiojou
2891
2892
and updated operations file that only has one input.
2888
2889
here are the two files.
okay. I just edited my post. Hope that makes it better.
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...
Thank you! That fixed it! :)
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 {
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...
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
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...
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
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