NullPointerException
in
Programming Questions
•
1 year ago
Hi I was wondering if someone could help me:
I'm trying to get a Legend string inserted individually into each box created (N) on the below code but coming across a few problems:
Here is my Class_Square, followed by the main code.
Errors
Line 1 of my class gives me a NullPointerException error
Line 2 of the main code gives me cannot convert to char to string error
Can anyone help on where i'm going wrong?
Thanks
- SBB2.this.text(this.Legend, this.Cx, this.Cy);
- localSquare.Legend = this.Legend.charAt(i);
1