Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am needing this question answered in Java programming language. So far I have wrote for(int i = 0; i int max = (int j=0;
I am needing this question answered in Java programming language. So far I have wrote
for(int i = 0; i
int max = (int j=0; j
Find the largest number from the following 2d array: int[] [] two_d_arr = { {1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10} The max number is: 10if (max
max = two_d_are[i][j];
}
}
System.out.println("Maximun number is " * max);
But when I when I run this it is giving me the max of each individual line.
Any ideas?
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