Hi I am trying to pass information from one method in to a 2 dimensional array any help is appreciated.
import java.io.PrintStream; import java.util.Scanner; public class Survey { // instance variables public static final int SIZE = 10; private String title; private static int respondentID = 0; private static String[] questionsArray = new String[SIZE]; private int numResponses; private boolean grid[][] = new boolean[SIZE][SIZE]; private Scanner in = new Scanner(System.in); //Constructors // Default Constructor Survey() { setTitle("Customer Survey"); generateRespondentId(); } // Overloaded Constructor 1 Survey(String ititle) { setTitle(ititle); setRespondentID(0); } public static int getRespondnetID() { return respondentID; } public static void setRespondentID(int respondentID) { Survey.respondentID = respondentID; // refers to respondentID in the first constructor } public String getITitle() { return title; } public void setTitle(String title) { this.title = title; } public static int getRespondentID(){ return respondentID; } public static int generateRespondentId() { respondentID = 0; return ++respondentID; } public void enterQuestions() { for (int i = 0; i < questionsArray.length; i++) { System.out.print("Please enter question: "); ///LOOK String question = in.nextLine(); questionsArray[i] = question; } System.out.println(); } public void displaySurveyResults(final boolean[][] grid, final int row, final int col) { System.out.printf(title, "\n"); ///LOOK This method must display the contents of the 'grid' array. NOT the questions boolean[][] logResponse = new boolean[SIZE][SIZE]; logResponse = grid; for (int row =1; row = < 10; row++){ for(int col = 1; col < 10; col++){ int q = gNumber(logResponse, row, col); } } } public void logResponse() { int respondnetID; int response; int gNumber; respondnetID = new generateRespondentID(); response = logResponse(response); } ///LOOK logResponse MUST NOT do ANY input } public void displayQuestionStats() { } }