title: Scanner and nullPointerException
body: <p>i don't why i'm getting this exception ! 
  my method is very simple it will loop to fill my parallel arrays 
  here is my method </p>
  
  <pre><code>public void fillPhoneBook(){
      Scanner in = new Scanner(System.in);
      for(int i=0;i&lt;this.names.length;i++){
          System.out.println("Enter Name:");
          this.names[i] =in.next();
          System.out.println("Enter Phone Number:");
          this.telephones[i]=in.next();//here start rising exception 
      }
      in.close();
  </code></pre>
  
  <p>i get this exception after the second input !`</p>
  
  <p><strong>--- UPDATE ---</strong></p>
  
  <p>sorry the problem was with initializing the telephones array </p>