Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    1,228

    Re: Single dimension array to multidimension array

    Array manipulation:

    int[][] twoDim = {{1,2}, {3,4}}; // define and give some values
    int[] oneDim = twoDim[0]; // copy first row to save
    twoDim[0] = twoDim[1]; ...
  2. Replies
    7
    Views
    1,228

    Re: Single dimension array to multidimension array

    So the the sortBySimpleInterest() method is named the sortBySimple()?

    The formatting on that posted code is poor. Statements nested inside of {} should be indented 3-4 spaces. Poor formatting...
  3. Replies
    7
    Views
    1,228

    Re: Single dimension array to multidimension array

    It would be sorted by the row based on the contents of the first column?

    Where is the sortBySimpleInterest() method? I don't find it in the posted code.
  4. Replies
    7
    Views
    1,228

    Re: Single dimension array to multidimension array

    How do you want to order the contents of the 2 dim array? By row depending on the contents of a specific column?

    Can you give an example of a small unsorted array and what it would be after...
Results 1 to 4 of 4