Answer:
public class Location {
//Class member (instance) variables
public int row;
public int col;
public double maxValue;
//The constructor
public Location(int row, int col, double maxValue) {
this.row = row;
this.col = col;
this.maxValue = maxValue;
}
}
Explanation: