Hello ,
i want to do this test but not work i don't know why i signe errorplease help meCode:public String toString2(double lat,double lon){ Iterator iterateur=liste.iterator(); String str=""; while(iterateur.hasNext()) { Magasin ma=(Magasin)iterateur.next(); double l=ma.getLatitude(); double lo=ma.getLongitude(); if((l<lat+10 and l>lat)&&(lo<lon+10 and lo>lon)){ double l=ma.getLatitude(); double lo=ma.getLongitude(); str+="Latitude :"+l+"Longitude:"+lo+"\n"; } }return str; }
Bookmarks