I am trying to settext to JLabel with a function.
settext
JLabel
The checkResults function is not working for some reason I still get errors. I have 2 classe
The solution to this problem is expected needs to be
@Override public String toString(){ return Integer.toString(expected); }
Then it needs to be set to JLabel like this,
jl.setText(problems.toString());