title: How to fix Syntax error, insert "... VariableDeclaratorId..."
body: <p>I am following a question but I am getting this error. I am not sure how to fix it, I have looked up this error but i can't relate it to my code. Would appreciate it any help given!</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Employee {
  
  
      private static String name;
      private static String job;
      private static float salary;
      private static int id;
  
  public Employee() {
  
      Scanner scan = new Scanner(System.in);
      name = scan.nextLine();
      job = scan.nextLine();
      salary = scan.nextFloat();
      id = scan.nextInt();
  }
  public Employee(String name, String job, float salary, int id) {
      name = name;
      job = job;
      salary = salary;
      id = id; 
  }
  public String getName(name) {
      return name;
  }
  public String getJobTitle(job) {
      return job;
  }
  public float salary(salary){
      return salary;
  }
  public static void showEmp() {
      System.out.println("Employee is called: " + name);
      System.out.println("They are a " +job); 
      System.out.println("Their salary is " + salary); 
      System.out.println("Their Employee ID number is " + id);
  }
  </code></pre>
  
  <p>}</p>
  
  <p><img src="https://i.stack.imgur.com/dY51j.png" alt="This is the question"> </p>