View Single Post
  #3 (permalink)  
Old 04-23-2008, 07:21 AM
maxim maxim is offline
Member
 
Join Date: Apr 2008
Posts: 3
maxim is on a distinguished road
ive had this. basicly if you have any sort of Collection. like a ArrayList, HashSet ect you have to tell the compiler what Type of variables are going to be in it. for example

ArrayList list = new ArrayList(); will give u that warning

ArrayList<String> list = new ArrayList<String>(); will get rid of the warning because you told the compiler that your going to put strings in it. just change it to Integers or Objects or whatever your going to put in it.
Reply With Quote