Skip to content
Snippets Groups Projects
Commit 40b14948 authored by EL GAOUAL Zaid's avatar EL GAOUAL Zaid
Browse files

ArrayGrid

parent b7a5cd36
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ package model;
public class ArrayGrid implements Grid{
public Cell[][] cells;
public void arrayGrid(int numberOfRows, int numberOfColumns) {
public ArrayGrid(int numberOfRows, int numberOfColumns) {
if(numberOfRows <= 0 || numberOfColumns <= 0)
throw new IllegalArgumentException("Le nombre de lignes ou de colonnes ne peut pas être nul ou négatif.");
Cell[][] cells = new Cell[numberOfRows][numberOfColumns];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment