Search:

Type: Posts; User: thegorila78

Search: Search took 0.32 seconds.

  1. Re: Trouble inputting values into a 2-dimensional array

    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...
  2. Re: Trouble inputting values into a 2-dimensional array

    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...
  3. Re: Trouble inputting values into a 2-dimensional array

    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);...
  4. Re: Trouble inputting values into a 2-dimensional array

    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...
  5. Re: Trouble inputting values into a 2-dimensional array

    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...
  6. Re: Trouble inputting values into a 2-dimensional array

    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...
  7. Trouble inputting values into a 2-dimensional array

    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...
Results 1 to 7 of 7