Question: Write a Java program named Array2D that reads in a pipe delimited file of int values (you must use a FileDialog box for locating the
Write a Java program named Array2D that reads in a pipe delimited file of int values (you must use a FileDialog box for locating the file) into a 2D array. Ask the user for the number of rows and columns. Have your program print out the largest value in each row and the overall largest value. Here is my main() method: ===============================
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("How many rows?");
int numRows = scan.nextInt();
System.out.println("How many columns?");
int numCols = scan.nextInt();
int[][] values = new int[numRows][numCols];
readFile(values);
highValues(values);
System.exit(0);
} =============================
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
