String ac = reader.nextLine();char a = ac.toCharArray()[0];switch (ac){case 'A': //注意引号...break;case 'B':...}