resize method

void resize(
  1. int width,
  2. int height
)

Resizes the grid to the given width and height.

Implementation

void resize(int width, int height) {
  this.width = width;
  this.height = height;
}