package zh; import java.util.Arrays; public class Jatek { char[][] table; public Jatek(char[][] table) throws AknakeresoException { for (char[] characters : table) { for (char character : characters) { if (character != 'a' && character != '0' ) { throw new AknakeresoException("csak a vagy 0 karaktert tartalmazhat a tabla"); } } } for (int i = 0; i < table.length; i++) { for (int o = 0; o < table.length; o++) { } } this.table = table; renderTable(); } public void renderTable() { } @Override public String toString() { final StringBuilder sb = new StringBuilder("Jatek{"); sb.append("table=").append(Arrays.toString(table)); sb.append('}'); return sb.toString(); } }