Receiving the error:
Pay.java:81: error: variable
hourlyWage
might not have been initializedJOptionPane.showMessageDialog(null, hourlyWage);
for the following code. The double hourlyWage
is declared, these statements are within the main argument. Not seeing what I'm missing, do you?
if(skillInt == 1){
hourlyWage = 17.00;
} else if(skillInt == 2){
hourlyWage = 20.00;
} else if(skillInt == 3){
hourlyWage = 22.00;
}
JOptionPane.showMessageDialog(null, hourlyWage);