import java.util.Arrays;
import java.util.Random;
public class Board {
private boolean[][] board
/**
* Construct a puzzle board by beginning with a solved board and then
* making a number of random moves. That some of the possible moves
* don't actually change what the board looks like.
*
* @param moves the number of moves to make when generating the board.
*/
public Board(int moves) {
// TODO: Implement this method
}
/**
* Construct a puzzle board using a 2D array of booleans to indicate which cells
* are filled and which are empty.
*
* @param b a 5x5 boolean array where true cells indicate that the corresponding
* position in the puzzle board starts filled and false indicates the
* position starts cleared. The board must have exactly 16 filled
* positions and 9 unfilled positions.
*/
public Board(boolean[][] b) {
// TODO: Implement this method
}
public void move(char m) {
// TODO: Implement this method
}
Please implement all methods in Java, thanks!