• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about an error message  RSS feed

 
Jon Davis
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if anyone could explain what the error message below means? Everything compiles and works as expected, but when I compile I get this message. I am using an Arraylist, which I am thinking has something to do with it, but I'm unsure what. Thank you.

Note: C:\Users\Jon\Desktop\Programming\cards\blackjack\Hand.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's probably because you are using the ArrayList without generics.
 
Jon Davis
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your reply, that solved my problem.
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My pleasure.

BTW Technically it's not an error message it's a warning, so you will get a class file generated that can be run.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!