@@ -0,0 +1,1913 @@
+import java.util.ArrayList;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: pylkevych%0A * Date: 9/1/14%0A * Time: 12:09 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class Advanced %7B%0A    public static void main(String%5B%5D args) %7B%0A        Advanced advanced = new Advanced();%0A        int%5B%5D%5B%5D array2d = %7B%0A                %7B3, 2, 1%7D,%0A                %7B4, 5, 3%7D%0A        %7D;%0A%0A        int%5B%5D array = advanced.array2dToArray(array2d);%0A        System.out.println();%0A        int%5B%5D arraySorted = advanced.sortAscArray(array);%0A    %7D%0A%0A    private int%5B%5D array2dToArray(int%5B%5D%5B%5D array2d) %7B%0A        ArrayList%3CInteger%3E arrayList = new ArrayList%3CInteger%3E();%0A        for (int row = 0; row %3C array2d.length; row++) %7B%0A            for (int column = 0; column %3C array2d%5Brow%5D.length; column++) %7B%0A                arrayList.add(array2d%5Brow%5D%5Bcolumn%5D);%0A            %7D%0A        %7D%0A        int%5B%5D ret = new int%5BarrayList.size()%5D;%0A        for (int i = 0; i %3C ret.length; i++) %7B%0A            ret%5Bi%5D = arrayList.get(i).intValue();%0A            System.out.print(ret%5Bi%5D + %22 %22);%0A        %7D%0A        return ret;%0A    %7D%0A%0A    //TODO: finish method%0A    public int%5B%5D%5B%5D arrayToArray2d(int%5B%5D arrayList, int row, int column) %7B%0A        int%5B%5D%5B%5D array2d = new int%5Brow%5D%5Bcolumn%5D;%0A        return array2d;%0A    %7D%0A%0A    private int%5B%5D sortAscArray(int%5B%5D array) %7B%0A        boolean swapped = true;%0A        int temp;%0A        do %7B%0A            swapped = false;%0A            for (int i = 0; i %3C array.length - 1; i++) %7B%0A                if (array%5Bi%5D %3E array%5Bi + 1%5D) %7B%0A                    temp = array%5Bi%5D;%0A                    array%5Bi%5D = array%5Bi + 1%5D;%0A                    array%5Bi + 1%5D = temp;%0A                    swapped = true;%0A                %7D%0A            %7D%0A        %7D while (swapped);%0A        System.out.println(%22Sorted array:%22);%0A        for (int h = 0; h %3C array.length; h++) %7B%0A            System.out.print(array%5Bh%5D + %22 %22);%0A        %7D%0A        return array;%0A    %7D%0A%7D%0A

Create Advanced.java