Hi, I have been beating my head against the wall trying to figure this out. I am trying to figure out the minimum and maximum value for a single row. I have added the values from three rows of a two dimensional array into a fourth row and I want to get the minimum and maximum value from the row but I can't seem to figure it out. The code below gives me weird results. I set my min and max at  because I only want to scan row 3. Thanks for the help.
int min = sales;
for (int row = 3; row < sales.length; row++)
for (int column = 0; column < grades.length; column++)
if (sales[row][column] < min)
min = sales[row][column];
int max = grades;
for (int row = 0; row < sales.length; row++)
for (int column = 0; column < sales.length; column++)
if (sales[row][column] > max)
max = sales[row][column];
Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop.
Define While Loop:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program.
Download Eclipse installation zip file:
Extract files from zip file:
Download and install JDK 8:
Open Eclipse and …