title: Scanner wont work
body: <p>I have problem with Scanner 
  When I run the program it skips this one after </p>
  
  <pre><code>System.out.println("name");
  n1=s.nextLine();
  </code></pre>
  
  <p>This is the program "CEmploye " is a class</p>
  
  <pre><code>package Ex5_2;
  import java.util.*;
  
  public class XXXX {
      public static void main(String[] args) {
  
          int input;
          int c1 ;
          String n1;
          Date d1 = null;
          float p1;
          float [] t = new float[3];
  
          System.out.println("give nb of emp");
  
          Scanner s = new Scanner(System.in);
  
          input=s.nextInt();
          Vector v = new Vector(input);
  
          for(int i=0 ;i &lt;input;i++)
          {   
              System.out.println("cin");
              c1=s.nextInt();
  
              System.out.println("name");
              n1=s.nextLine();
  
              System.out.println("price");
              p1=s.nextFloat();
  
              for(int k=0 ; k&lt;3;k++)
              {
                  System.out.println("nb of hour");
  
                  CEmploye.tab[k]=s.nextFloat();
              }
  
              CEmploye emp = new CEmploye(c1,n1,d1,p1);
              emp.CalculSalaire();
  
              System.out.println(emp.salaire);
          }       
      }
  }
  </code></pre>
  
  <p>Can anyone give me solution ?</p>