Try
if (kindOfEmployee == 2) {
System.out.println("Overtime Rate:");
overtimeRate = input.nextInt();
System.out.println("Overtime Hours:");
overtimeHours = input.nextInt();
overtimePay = overtimeRate*overtimeHours;
}
0
solved employee’s job to calculate salary using java