Hey i have to create a 2D array of rows and columns which will takes a row and a columns as a paremeter and enters a string into that positions.
I managed to create the array but i cant find a way of getting from the user input.
public class Grid
{
// instance variables - replace the example below with your own
private int rows;
private int columns;
public Grid(int columns, int rows)
{
double[][] Grid = new double [columns][rows];
}
public void storeString(String c, String r)
{
for (int i = 0; i < columns; i++){
for (int j = 0; j< rows.length; j++){
}
}
}
}