So I take it you have to implement the whole sorting your self then, so you cant just use a simple Treeset to do it for you?
public static void main(String[] args) {
final...
Type: Posts; User: Json
So I take it you have to implement the whole sorting your self then, so you cant just use a simple Treeset to do it for you?
public static void main(String[] args) {
final...
First of all you need to have a look at the binarySearch definition.
As you can see above a binarySearch requires the array to be sorted before you can search it as using the Arrays.sort...