Search:

Type: Posts; User: gtrankle

Search: Search took 0.43 seconds.

  1. Replies
    12
    Views
    470

    Re: Collections.sort

    Idk??? there is no this there.
  2. Replies
    12
    Views
    470

    Re: Collections.sort

    error at 28
  3. Replies
    12
    Views
    470

    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
    1
    Views
    136

    What is wrong with the call?

    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));
    }
  5. Replies
    12
    Views
    470

    Re: Collections.sort

    Thanks!
  6. Replies
    3
    Views
    241

    Collections.sort

    I will try again.


    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 ?...
  7. Replies
    12
    Views
    470

    Re: Collections.sort

    I am looking at other posts to see what you mean by "
    tags".
  8. Replies
    12
    Views
    470

    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 8 of 8