I wanted to follow up with another question I asked as I am having trouble eliminating the warnings from my source code.
In eclipse, I have created the variable in the class of:
However, if I try to run my code with just this, I receive a NullPointerException. So then I set it to the following:
And I get the following message:
Multiple markers at this line
- ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
- Type safety: The expression of type ArrayList needs unchecked conversion to conform to
Anyone able to help me out with this one? It isn't breaking my program, but I want everything to be 100% correct, so if someone could tell me what I am doing wrong, I would appreciate it!