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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started