我遇到问题让 net-beans 接受一个角色,然后说这个人是 hr 有薪工人还是月薪,任何帮助都会得到 char 行的错误
import java.util.Scanner;
public class Infromation {
public static void main(String [] args){
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,H and F");
char e_code=input.next();