Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
private int max_rows;
private int max_cols;
private int display_width;
private Cell[][] spreadsheet;
public Grid(int max_rows, int max_cols, int display_width) {
this.max_rows = max_rows;
this.max_cols = max_cols;
this.display_width = display_width;
spreadsheet = new Cell[max_rows + 1][max_cols + 1]; // this
// initializes the
// grid
for (int row = 0; row <= max_rows ; row++) { // every spot is filled
// with a blank ""
for (int col = 0; col <= max_cols ; col++) {
spreadsheet[row][col] = new Cell("");
}
}
for(int col = 1; col<=max_cols; col++){
spreadsheet[0][col] = new Cell(Helpers.getColLetter(col));
}
for(int row = 1; row<=max_rows; row++){
spreadsheet[row][0] = new Cell("" + row);
}
spreadsheet[4][3] =new Cell( "Howdy");
}
private int max_rows;
private int max_cols;
private int display_width;
private Cell[][] spreadsheet;
public Grid(int max_rows, int max_cols, int display_width) {
this.max_rows = max_rows;
this.max_cols = max_cols;
this.display_width = display_width;
spreadsheet = new Cell[max_rows + 1][max_cols + 1]; // this
// initializes the
// grid
for (int row = 0; row <= max_rows ; row++) { // every spot is filled
// with a blank ""
for (int col = 0; col <= max_cols ; col++) {
spreadsheet[row][col] = new Cell("");
}
}
for(int col = 1; col<=max_cols; col++){
spreadsheet[0][col] = new Cell(Helpers.getColLetter(col));
}
for(int row = 1; row<=max_rows; row++){
spreadsheet[row][0] = new Cell("" + row);
}
spreadsheet[4][3] =new Cell( "Howdy");
}