title: does code check every if statement?
body: <p>So i was practicing on past google code jam problems(btw it is on 7th april if you don't already know) and i wrote this code in which i put multiple if statements.
  Looks something like this:</p>
  
  <pre><code>for(int b=0;b&lt;length;b++)
                          {
                             if(array[b]==1 &amp;&amp; done1==false)
                             {
                                done1=true;
  
                             }
  
                             if(array[b]==2 &amp;&amp; done2==false)
                             {
                                done2=true;
                             }
  
                               if(array[b]==3 &amp;&amp; done3==false)
                             {
                                done3=true;
                             }
  
                             if(array[b]==4 &amp;&amp; done4==false)
                             {
                                done4=true;
                             }
  
                             if(array[b]==5 &amp;&amp; done5==false)
                             {
                                done5=true;
                             }
  
                             if(array[b]==6 &amp;&amp; done6==false)
                             {
                                done6=true;
                             }
  
                             if(array[b]==7 &amp;&amp; done7==false)
                             {
                                done7=true;
  
                             }
  
                             if(array[b]==8 &amp;&amp; done8==false)
                             {
                                done8=true;
  
                             }
  
                             if(array[b]==9 &amp;&amp; done9==false)
                             {
                                done9=true;
  
                             }
  
                             if(array[b]==0 &amp;&amp; done0==false)
                             {
                                done0=true;
  
                             }
  
                             if(done0==true &amp;&amp; done1==true &amp;&amp; done2==true &amp;&amp; done3==true &amp;&amp; done4==true &amp;&amp; done5==true &amp;&amp; done6==true &amp;&amp; done7==true &amp;&amp; done8==true &amp;&amp; done9==true)
                             {
                                 System.out.println("Case"+" "+"#"+(K-T) + ":"+G);
                                 break;
                             }
  
  
  
  }
  </code></pre>
  
  <p>My question is does it check every 'if' statement or only till the first 'if' which satisfies the condition.Also is it bad if i write if statements like this?
  Any help is appreciated.Sorry if this is way too noob a question for you</p>
  
  <p>Do let me know if you need more details.Thanks!</p>
  
  <p>EDIT:
  Everyone seems to have the impression that i need the program to get out of the loop once the condition is fulfilled. I don't. I want it to check every condition and act accordingly.
  For context:
  there is a number N and i need to check if N,2N,3N.... contains all the digits and print the last number which will complete the set of digits.So I separate the digits and put them in an array and check with the <code>for loop</code> .</p>
  
  <p>Lastly I'm sorry for not debugging. I'm a beginner and i thought I'd just ask the pros.</p>