public class TripsuLaud{ private char[][] laud=new char[3][3]; public TripsuLaud(){ for(int rida=0; rida<3; rida++){ for(int veerg=0; veerg<3; veerg++){ laud[rida][veerg]='_'; } } } public void paiguta(int rida, int veerg, char symbol){ laud[rida][veerg]=symbol; } public String toString(){ StringBuffer sb=new StringBuffer(); sb.append("Laud:\n"); for(int rida=0; rida<3; rida++){ for(int veerg=0; veerg<3; veerg++){ sb.append(laud[rida][veerg]); } sb.append("\n"); } return sb.toString(); } }