Results 1 to 3 of 3

Thread: problem on if

  1. #1
    Join Date
    Nov 2008
    Posts
    25

    problem on if

    Hello ,

    i want to do this test but not work i don't know why i signe error
    Code:
    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;
        }
    please help me

  2. #2
    Join Date
    Feb 2009
    Posts
    96

    Re: problem on if

    what error is it giving you or what is it doing that you don't understand?

  3. #3
    Join Date
    Nov 2008
    Posts
    25

    Re: problem on if

    hello ,

    i want to obtain the test of value the lat and long with between but i don't know how explain this

    thanks

Similar Threads

  1. Sony VGNCS3 laptop 15 inch screen problem...LCD or CHIP problem?
    By Mick$Tyler in forum Hardware Peripherals
    Replies: 5
    Last Post: 31-10-2010, 06:49 AM
  2. Replies: 6
    Last Post: 27-07-2010, 12:10 AM
  3. hard disk problem, clicking sound and windows problem
    By rajat_2589 in forum Hardware Peripherals
    Replies: 1
    Last Post: 16-06-2010, 11:34 PM
  4. Replies: 4
    Last Post: 10-04-2010, 04:19 PM
  5. Replies: 1
    Last Post: 30-11-2004, 11:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,691,580.75748 seconds with 16 queries