class History {
public String[] history;
public History(String[] history) {
if (history == null)
history = new String[]{};
else
history = this.history
}
}
Run Code Online (Sandbox Code Playgroud)
无论我给它什么,它只是一直保存null ...所以无法使用它..