You have been a real help man. I have one final problem with the toString method. I have no idea what to put in the return statement. When I input i and j, it says they cannot be resolved to a...
Type: Posts; User: thegorila78
You have been a real help man. I have one final problem with the toString method. I have no idea what to put in the return statement. When I input i and j, it says they cannot be resolved to a...
Ok I made the changes you said I should accept now I'm getting a different error in the method header of locateLargest which is :The method getMax(int[][]) in the type Location is not applicable for...
Thanks for the reply. My updated code is:
import java.util.Scanner;
public class LocationTest {
public static void main(String[] args) {
Scanner numberInput = new Scanner(System.in);...
I think I get what you're saying but I'm still kinda lost. So, if I make a new class just for Location, should I keep both the constructors in the old class or put them in the new one? Also, which...
Alright my updated code is:
import java.util.Arrays;
import java.util.Scanner;
public class Location {
private int row;
private int column;
private int[][] array;
public static void...
Thanks for the reply man I understand what I did wrong now and fixed it. I also have another question though. Another part of my assignment is to find the coordinates of the max value or locate...
Hey guys I'm trying to input values into a 2 dimensional array in a program I am doing for school. My code is as follows:
import java.util.Arrays;
import java.util.Scanner;
public class...