Hi all,
I don't know how to sort data structures of type List<List< ...>> or any collection of collections in general
I'll put here my question, but now, reformulated with a more concise (and...
Type: Posts; User: PauloSotto
Hi all,
I don't know how to sort data structures of type List<List< ...>> or any collection of collections in general
I'll put here my question, but now, reformulated with a more concise (and...
In post #4 you suggested:
According to your suggestion, I get:
[1, 2, 3, 8, 10, 12, 13, 20, 30]
Since the array is sorted before calling first method, I'll get only one sub-collection...
Thank you very much for your patience.
I think is more informative paste the code than say what it does.
Lets see the entire code (it's not to big):
MyComparator.java
public class...
You are absolutely right.
The problem is I don't know how to sort a List<List<Integer>> or say in other terms
I don't know how to sort the "inner" list inside the "outer" list.
Can you help...
Hi all,
I know how to use Java collections but at beginner's level.
I have the list:
[10, 20, 30, 12, 13, 8, 1, 2, 3]
With the following methods: