-3
public LinkedList<MazeCoord> getPath() {
return getPath();
}
public class MazeCoord {
final private int row; // final (non-static) means it can't be updated once
final private int col; // it's initialized
// create a MazeCoord with the given row and column
public MazeCoord(int row, int col) {
this.row = row;
this.col = col;
}
// get the row of this MazeCoord
public int getRow() { return row; }
// get the col of this MazeCoord;
public int getCol() { return col; }
}
爲什麼當我嘗試在我的Eclipse中運行這個控制檯時,控制檯會提示我堆棧溢出?JAVA鏈接列表
任何人都可以告訴我原因嗎?
本網站有搜索功能。在發佈新問題之前使用它。 – Raedwald