Initial upload of data created for program


import java.util.Scanner;

public class EmpDataCalcWithCommissions {

    public static void main(String[] args) {
        // Create a new object to calculate the YearlyCompensation
        YearlyCompensation employeeData[] = new YearlyCompensation[2];
        // These two objects will oversee the data for both employees
        employeeData[0] = new YearlyCompensation();
        employeeData[1] = new YearlyCompensation();
        Scanner keyboard = new Scanner(System.in);

        //Acquire employees1 name
        System.out.println("What is the first employees name?");
        employeeData[0].name = keyboard.nextLine();

        //Acquire employees1 salary total
        System.out.println("Please enter the yearly salary of the first employee: ");
        double val = keyboard.nextDouble();
        employeeData[0].setAnnualSalary(val);

        //Acquire employees2 name
        System.out.println("What is the second employees name?");
        employeeData[1].name = keyboard.next();

        //Acquire employees2 salary total
        System.out.println("Please enter annual salary of the second employee: ");
        val = keyboard.nextDouble();
        employeeData[1].setAnnualSalary(val);

        double goal1, goal2;
        goal1 = employeeData[0].getTotalSalary();
        System.out.println("Total salary of " + employeeData[0].name +" is: $" + goal1);
        total2 = salesPerson[1].getTotalSales();
        System.out.println("Total salary of " + employeeData[1].name +" is: $" + goal2);
        if (goal1 > goal2) {
            System.out.print("Employee " + employeeData[1].name + "'s additional amount of sales that he must " + " achieve to match or exceed the higher of the employee " + employeeData[0].name);
            System.out.println(" $" + (goal1 - goal2));
        } else if (goal2 > goal1) {
            System.out.print("Employee " + employeeData[0].name + "'s additional amount of sales that he must " + " achieve to match or exceed the higher of the employee " + employeeData[1].name);
            System.out.println(" $" + (goal2 - goal1));
        } else {
            System.out.println("Both have the same or similar total compensation amount" + goal1);
        }
    }
}