class History {
public String[] history;
public History(String[] history) {
if (history == null)
history = new String[]{};
else
history = this.history
}
}
It just keep saving null down no matter what i give it..
So can’t work with it..
Don’t you mean this?
You also have a mistake in this line:
It should be:
When I program, I never give local variables the same name as class variables. It only leads to confusion.