Search stack for tasks for current day and insert into priority queue

Stacks and Priority Queues

Posted 30 March 2009 - 08:39 AM

this is just my tester class, i need to search a stack for tasks that are due for completion on the current day and add them to the priority queue. I have gotten the current day stored into a varible, but am having no luck with getting the date from each of the tasks through searching. Any help would be appreciated. Thanks

i still cant get it adding to the priority queue, it's displaying a reference.

The PriorityQ class does not have a toString() method. So you'll get Object.toString().
Also you are printing the value of the array reference, not the array contentsSystem.out.println("Priority Q: \n" + thePQ);