 Advise on tackling syntax errors in Java
<p>I very inexperience with Java, I'm spending ninety percent of time fixing errors in my program. Also when I experience a syntax error, it's super hard for me to spot them and fix them. I'll be very thankful if a experienced programmer can give some tips of the trade. An example of a type error for me is <strong>Syntax error on token "void", @ expected</strong>. On public void employeeName().</p>

<pre><code>import java.util.Scanner;

public class EmployeeDriver {

String employeeName;
public void employeeName() {
   try {

        Scanner scannerName = new Scanner(System.in);
        System.out.println("Employye Name " + scannerName.nextLine());

        System.out.println("When did you hire the Employee");
        Scanner scanner1 = new Scanner(System.in);
        System.out.println("The Employee name is " + scanner1.nextLine());

        System.out.println("What is the Employee's Number");
        Scanner scannerNum = new Scanner(System.in);
        System.out.println("The Employee name is " + scannerNum.nextLine());

    }catch (Exception e){
        System.out.println("Error occurred" + e.getMessage());
    }

}

public static void main(String[] args) {

    System.out.println("What is the Employee name");
    EmployeeDriver namingEmployeeObject = new EmployeeDriver();
    namingEmployeeObject.employeeName();
    Scanner scanner = new Scanner(System.in);
}
</code></pre>

<p>}</p>
