我正在解析网站上的一些数据。今天,该网站因500错误而关闭,而我的应用也由于500问题而关闭了。
我尝试使用public class Vertex {
private String label;
private LinkedList<Edge> edges;
// implement a constructor that initializes the `edges` field
public Vertex() {
this.edges = new LinkedList<>();
}
// It's probably better to call this `addEdge` instead of `setEdges`
public void addEdge(Edge e) {
// now, this.edges is not null since it was initialized in the constructor
this.edges.add(e);
}
}
,但是它给了我相同的结果,该应用程序已关闭。即使网站已关闭,我如何使我的代码正常工作?
x ? x : "not available"