Hello everyone,
I am brand new to this forum and I am a beginner at this Java malarkey!
I am doing a project for college at the moment and am getting a NullPointerException error
when I try to run my code and have no idea why I am getting it!
Please can someone help me?
I know my code is not the best and there are probably lots of things I am doing wrong (proper standards for how to write the code etc...)
But for now I just need to figure out why I am getting the NullPointerException on my method.
It is giving me the error on method setLabelHolder, which I am sure has access to the array pics[] and the int numItems...
The array I am trying to populate - LabelHolder - I am sure has also been properly declared and initialised...
Please see attached code, and apologies for the way it is in 2 separate files with main in 1 file and the rest of the code in the other, its that way on purpose for now, sorry if its confusing.
THANKS!!!