Hello,
Here is my code
Code:
Public class Can {
private Intl[][] tb = new Intl [2][2];
Public Can (Intl [][] newtbau) {
tb = newtbau;
}
Public void mdtab() {
board[0][0] += 1;
}
Public Intl[][] getTab() {
return tb;
}
Public void test() {
Can tp = new Can(this.clone());
tp.mdtab();
System.out.System.out.println(board[0][0]+" "+ tp.getTab()[0][0]);
}
}
So, I have problem in using the method clone(). I peeled several article on clone (), but none really solves the problem this way (and we understand why since AC does not work in). Yet AC seems logical, but with all these pointers hidden I do not know really what I handle. Thanks in advance.
Bookmarks