Homework Solution: 1e import java.util.Random; b 2 import java.util.scanner; 4 public class number 7 8 9 // Creates a 2D array of integer…

    The top picture is what I have so far. I got it to print a 2 by 20 table. But I have no idea how to rearrange them. 1e import java.util.Random; b 2 import java.util.scanner; 4 public class number 7 8 9 // Creates a 2D array of integers, fills it with increasing // integer values, then prints them out. 10e public static void main(String[] args) Random generator-new Random(); 12 13 14 15 16 17 18 19 20 21 int[][] table = new int[[20] [2]; // Load the table with values for (int row=0; row < table. length; row++) for (int col-0; col < table[row].length; col++) table [row] [col] - (int) (Math.random()*100); 23 24 25 26 27 28 29 30 // Print the table for (int row=0; row < table. length; row++) for (int col-0; col < table[row].length; col++) System.out.print(table[row][col] + t); System.out.println(); 32
    1e import java.util.Random; b 2 import java.util.scanner; 4 public class number 7 8 9 // Creates a 2D array of integers, fills it with increasing // integer values, then prints them out. 10e public static void main(String[] args) Random generator-new Random(); 12 13 14 15 16 17 18 19 20 21 int[][] table = new int[[20] [2]; // Load the table with values for (int row=0; row

    Expert Answer

     
    import java.util.Arrays; public class Numbers {

    The summit delineate is what I keep so remote. I got it to print a 2 by 20 consultation. But I keep no proposal how to supply them.

    1e purport java.util.Random; b 2 purport java.util.scanner; 4 exoteric rank compute 7 8 9 // Creates a 2D place of integers, fills it with increasing // integer values, then prints them quenched. 10e exoteric static unfilled deep(String[] args) Casual generator-upstart Casual(); 12 13 14 15 16 17 18 19 20 21 int[][] consultation = upstart int[[20] [2]; // Load the consultation with values restraint (int dignity=0; dignity < consultation. elongation; dignity++) restraint (int col-0; col < consultation[row].length; col++) consultation [row] [col] - (int) (Math.random()*100); 23 24 25 26 27 28 29 30 // Print the consultation restraint (int dignity=0; dignity < consultation. elongation; dignity++) restraint (int col-0; col < consultation[row].length; col++) System.out.print(table[row][col] + t); System.out.println(); 32

    1e purport java.util.Random; b 2 purport java.util.scanner; 4 exoteric rank compute 7 8 9 // Creates a 2D place of integers, fills it with increasing // integer values, then prints them quenched. 10e exoteric static unfilled deep(String[] args) Casual generator-upstart Casual(); 12 13 14 15 16 17 18 19 20 21 int[][] consultation = upstart int[[20] [2]; // Load the consultation with values restraint (int dignity=0; dignity

    Expert Response

     

    purport java.util.Arrays;

    exoteric rank Computes {

    exoteric unfilled nextLargest(int[] placeList)

    {

    boolean flag=false;

    int manneredArray[]=upstart int[arrayList.length];

    for(int i=0;i<arrayList.length;i++)

    {

    sortedArray[i]=arrayList[i];

    }

    Arrays.sort(sortedArray);

    for(int i=0;i<arrayList.length;i++)

    {

    System.out.print(arrayList[i]+”:”);

    for(int j=0;j<sortedArray.length;j++)

    {

    if(sortedArray[j]==arrayList[i])

    {

    if(j==sortedArray.length-1)

    {

    System.out.println(“2147483647”);

    break;

    }

    System.out.println(sortedArray[j+1]);

    }

    }

    }

    }

    exoteric static unfilled deep(String[] args) {

    Numbers compute =upstart Computes();

    int placeList[]= {78,22,56,99,12,14,17,15,1,144,37,23,48,88,3,19};

    number.nextLargest(arrayList);

    }

    }