title: Confusing Error in Bluej
body: <p>When i run following it runs successfully :</p>
  
  <pre><code>import java.util.*;
  public class god {
      public void main() {
          int chalnabey;
          Scanner in=new Scanner(System.in);
          System.out.println("t");
      }
  }
  </code></pre>
  
  <p>But when i add another line to assign input to variable, the left side red loader goes non-stop progressing and my code never runs !</p>
  
  <pre><code>import java.util.*;
  public class god {
      public void main() {
          int chalnabey;
          Scanner in=new Scanner(System.in);
          chalnabey=in.nextInt();               //This is addition line to previous code
          System.out.println("t");
      }
  }
  </code></pre>
  
  <p>Can anybody tell why this happens and how to correct it ?</p>