continue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    continue

    why it doesnt skip to the next iteration?
    maybe i'm doing something wrong what i dont see ?

    [code=java]
    for(int i=0;i<rows;i++) {

    if(distance[i]==0) continue;
    if(distanceTemp >distance[i]){
    distanceTemp=di stance[i];
    MinDistanceInde x=i;
    }
    }
    [/code]
    thank YOU
    Last edited by JosAH; Jul 10 '07, 09:17 PM. Reason: added those code tags again
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Remember that System.out.prin tln() poor men's debugger?

    kind regards,

    Jos

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      it enters if statement when distance[i]==0 but it doesnt go to the next loop ?

      Comment

      • oll3i
        Contributor
        • Mar 2007
        • 679

        #4
        :) my second if statement was wrong now it works :) thank YOU

        Comment

        Working...