Search:

Type: Posts; User: PauloSotto

Search: Search took 0.41 seconds.

  1. Replies
    9
    Views
    689

    Ordering nested collections (question reformulated)

    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...
  2. Replies
    9
    Views
    689

    Re: Problem ordering nested collections

    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...
  3. Replies
    9
    Views
    689

    Re: Problem ordering nested collections

    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...
  4. Replies
    9
    Views
    689

    Re: Problem ordering nested collections

    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...
  5. Replies
    9
    Views
    689

    Problem ordering nested collections

    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:
Results 1 to 5 of 5