Search:

Type: Posts; User: leao

Search: Search took 0.50 seconds.

  1. Replies
    1
    Views
    2,137

    Help with sorting Calendar objects!

    Hi
    So here is what i have in hand:

    An Object: Booking(Calendar c1, Calendar c2, Object o1, Object o2)
    An ArrayList "bookings"

    I have to sort the bookings according to c1 times of them and...
  2. Thread: Sorting ArrayList

    by leao
    Replies
    2
    Views
    863

    Re: Sorting ArrayList

    Ok it was my first time sorting an ArrayList and i figured it out,

    Seems like it was a basic error.



    I was using COMPARATOR instead of COMPARABLE and i found the compareTo method overriding...
  3. Thread: Sorting ArrayList

    by leao
    Replies
    2
    Views
    863

    Sorting ArrayList

    Hello everyone,


    Let me describe my program a bit.


    There are 5 classes which describe Person, Tool, Building, Room and Organisation. They all have a String field so they are all similar. So...
  4. Replies
    4
    Views
    574

    Re: Need help with boolean method! =(

    Ooooh right ... ok i changed the both "break"s to "return false;"

    thats true right ? =)
  5. Replies
    4
    Views
    574

    Re: Need help with boolean method! =(

    yes, i still cant figure it out, im a beginner =/

    The Index and Word values of two arrays have to be same.

    Otherwise it has to be false,

    is this code true ? or is there a cleaner version...
  6. Replies
    4
    Views
    574

    Need help with boolean method! =(

    Ok so here's my code. It has to check if all the array word members of "this" and "wca" array are same.
    If theyre the same i need true.. But if only one of them is wrong it has to give false.

    I...
Results 1 to 6 of 6