title: What's wrong with this code?
body: <p>When ever I run this program I got problem on its final stage. I can't print the value of t[5]. can anybody help me out from this issue?
  I want to take t[n] values upto n = NoL but program run without error till I enter the final value. (I call this method to main method. and get a problem like image 1 <a href="http://i.stack.imgur.com/dTQsh.jpg" rel="nofollow">Image 1</a></p>
  
  <pre><code>    for(n=1; n&lt;=NoL; n++){  
      if (n==1){
              System.out.println("your 1st letter in which column?");
              t[n] = input.nextInt();
          }
      else if (n==2){
              System.out.println("your 2nd letter in which column?");
              t[n] = input.nextInt();
  
          }
      else if (n==3){
              System.out.println("your 3rd letter in which column?");
              t[n] = input.nextInt();
  
          }
      else{  
          for (n=4; n&lt;=NoL ; n++){                
                  System.out.println("your "+  n+"th letter in which column?");
                  t[n] = input.nextInt();
              }
  
          }
      }   
  System.out.println(t[3]);
  }
  </code></pre>
  
  <p>What should I do now? Please help me thanks in advance....</p>