Recaip Sanli wrote:
Recaip Sanli wrote:
I replaced toString method you wrote with mine but issue still exists...
Dave Tolls wrote:It wouldn't compile if you did what Campbell suggested.
Recaip Sanli wrote:I found that problem was this ->
public String toString(int x, int y) {
return "(" + x + "," + y + ")";
}
Should be like this ->
public String toString() {
return "(" + this.x + "," + this.y + ")";
}
Because teacher wanted us to use "this." instead of sending in values
Recaip Sanli wrote:
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |