Results 1 to 3 of 3
  1. #1
    alims52 is offline Member
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Default need to create two methods

    i need to create method, which traverse the collection of jobs, and find the most urgent one, and also if two have the same urgency, use the one earlier in the collection.

    another one is that i have made my arraylist of jobs, but i need to write method to count how many jobs are in the arraylist.

  2. #2
    Supamagier is offline Senior Member
    Join Date
    Aug 2008
    Posts
    384
    Rep Power
    6

    Default

    ehm.. use ArrayList.size() ?

    Anyway, we can't help you (what is your question, btw) without you posting any code, with error outputs/wrong outputs. And we also're not gonna do your hw.
    I die a little on the inside...
    Every time I get shot.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  2. How to create object dinamically and call methods.
    By Gelembjuk in forum New To Java
    Replies: 8
    Last Post: 10-26-2008, 09:28 AM
  3. Get and Set Methods
    By kian_hong2000 in forum New To Java
    Replies: 10
    Last Post: 08-27-2008, 02:06 PM
  4. methods
    By Zensai in forum New To Java
    Replies: 10
    Last Post: 12-03-2007, 05:31 AM
  5. Methods
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-01-2007, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •