📄 build.java
字号:
/**
*designed & build by Grahame batte email: g.batte@lancaster.ac.uk
*last modified on 22-05-03
*used in my minesweeper aplication
*/
public class build
{
/**
*s is an array of squares
*/
public static Square [][] s = new Square [game.row][game.column];
/**
*Square squ is an instance of a square. replaced each time round the loop.
*/
public static Square squ;
/**
*bulid sets s = new Square [row][column];
*@param row the number of rows asked for by the minesweeper clas
*@param column the number of columns asked for be the minesweeper class
*/
public build(int row, int column)
{
for ( int i=0; i<row;i++)
{
for (int j=0; j<column;j++)
{
squ = new Square (i,j); // calls an instance of the square class
s [i][j] = squ;
} //end for
} //end for
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -