我在尝试获取 If else if 语句中的变量时遇到错误,任何帮助都可以,谢谢这里是程序
public class Info {
public static void main(String [] args){
char f,F,c,C,h,H;
Scanner input=new Scanner(System.in);
System.out.print("Enter employee num");
int e_num=input.nextInt();
System.out.print("Enter employee first name");
String e_fname=input.next();
System.out.print("Enter employee surname");
String e_sname=input.next();
System.out.print("Enter employee code C or c,H or h and F or f");
char e_code = input.next().charAt(0);
if(e_code=='f' || e_code=='F') {
System.out.print("Enter employee salary: ");
double salary=input.nextDouble();
e_code=calGrossF();
}
else if(e_code=='c'||e_code=='C'){
e_code=calGrossC();
}
else if(e_code=='h'|| e_code=='H'){
e_code=calGrossH();
}
}//end of main
public static void calGrossF(int f, int F){
}//end of Gross(F)
public static char calGrossC(){
}// end of Gross(C)
public static char calGrossH();{