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...
Type: Posts; User: leao
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...
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...