Grhymn
Mar 18th, 2010, 02:48 PM
Hi,
I am quite new to java and got following warning message after compiling:
Note:...\Player.java uses unchecked or unsave operations.
Note:Recompile with -Xlint: unchecked for details.
I got the message after adding following method:
public boolean controleOverlappend(ArrayList<Position> coordinaten)
{
boolean value=false;
Set coordinatenSet=map.keySet();
Iterator<Position> it=coordinatenSet.iterator();
Iterator<Position> it2=coordinaten.iterator();
while (it2.hasNext()){
while(it.hasNext()){
value= !it2.next().equals(it.next());
}
}
return value;
}
I am quite new to java and got following warning message after compiling:
Note:...\Player.java uses unchecked or unsave operations.
Note:Recompile with -Xlint: unchecked for details.
I got the message after adding following method:
public boolean controleOverlappend(ArrayList<Position> coordinaten)
{
boolean value=false;
Set coordinatenSet=map.keySet();
Iterator<Position> it=coordinatenSet.iterator();
Iterator<Position> it2=coordinaten.iterator();
while (it2.hasNext()){
while(it.hasNext()){
value= !it2.next().equals(it.next());
}
}
return value;
}