package de.gymnew.sudoku.model;

import java.io.File;

public class Sudoku {

	private Field[][] fields;
	private Row[] rows;
	private Column[] columns;
	private Block[][] blocks;

	public Sudoku() {
		fields = new Field[9][9];
		
		for(int i=0;i<9;i++){
			for(int j=0;j<9;j++){
				fields[i][j] = new Field();
			}
		}
		// TODO Create Rows, Columns and Blocks
	}

	public Field getField(int column, int row) {
		return fields[column][row];
	}
	
	@Override
	public Sudoku clone() {
		Sudoku sudoku = new Sudoku();
		for(int i = 0; i<9; i++) {
			for(int j = 0; j<9; j++) {
				Field src = fields[i][j];
				Field dst = sudoku.getField(i, j);
				dst.setValue(src.getValue());
				dst.addNotes(src.getNotes());
			}
		}
		return null;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

	private void load(String string) {
		// TODO Auto-generated method stub
	}
	
	public static Sudoku load(File file) {
		// TODO Auto-generated method stub
		return null;
	}

}

@@ -821,42 +821,133 @@
 %0D%0A%09%09
-// TODO Auto-generated method stub
+String s = %22%22;%0D%0A%09%09for(int i=0;i%3C9;i++)%7B%0D%0A%09%09%09for(int j=0;j%3C9;j++)%7B%0D%0A%09%09%09%09s += fields%5Bi%5D%5Bj%5D.getValue();%0D%0A%09%09%09%7D%0D%0A%09%09%09s += %22%7C%22;%0D%0A%09%09%7D
 %0D%0A%09%09
@@ -945,36 +945,33 @@
 %0D%0A%09%09%7D%0D%0A%09%09return 
-null
+s
 ;%0D%0A%09%7D%0D%0A%0D%0A%09privat
@@ -1038,16 +1038,102 @@
 d stub%0D%0A
+%09%09for(int i = 0;i%3C9;i++)%7B%0D%0A%09%09%09for(int j=0;j%3C9;j++)%7B%0D%0A%09%09%09%09string.charAt();%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A
 %09%7D%0D%0A%09%0D%0A%09

Save methods