Search:

Type: Posts; User: gtrankle

Search: Search took 0.08 seconds.

  1. Replies
    12
    Views
    1,530

    Re: Collections.sort

    Idk??? there is no this there.
  2. Replies
    12
    Views
    1,530

    Re: Collections.sort

    error at 28
  3. Replies
    12
    Views
    1,530

    Re: Collections.sort

    This compiles and runs well:


    public class IntegerTest implements Comparator<Integer>{
    @Override
    public int compare(Integer o1, Integer o2){
    return (o1<o2 ? -1 : (o1==o2 ? 0 : 1));
    }
  4. Replies
    12
    Views
    1,530

    Re: Collections.sort

    Thanks!
  5. Replies
    12
    Views
    1,530

    Re: Collections.sort

    I am looking at other posts to see what you mean by "
    tags".
  6. Replies
    12
    Views
    1,530

    Collections.sort

    This compiles and runs well:
    public class IntegerTest implements Comparator<Integer>{
    @Override
    public int compare(Integer o1, Integer o2){
    return (o1<o2 ? -1 : (o1==o2 ? 0 : 1));
    }


    /**
    *...
Results 1 to 6 of 6