Tony Docherty wrote:Welcome to the Ranch
I've edited your post by changing the 'javadoc' tags you used to 'code' tags so it displays properly on this forum.
Greg Charles wrote:Hi Mona, welcome to JavaRanch!
It would be helpful if you posted the warnings you are getting. They probably are related to a new(ish) concept in Java called generics. Try changing the class declaration to:
and see if that makes them go away.
Tony Docherty wrote:Your code contains IndexOutOfBoundException which should probably be IndexOutOfBoundsException
The warnings are due to you not using generics, see http://docs.oracle.com/javase/tutorial/extra/generics/index.html.
Note using generics is not compulsory (but is definitely recommended) and not using generics will not stop your code from running.
Carey Brown wrote:If you have
Don't get me started about those stupid light bulbs. |