If i get the user to input a value in String from the menu output on the screen. How can i use that input for a switch statement? it keeps it can be only used for int. For example, if a user enters a, i want it to switch to the case statement and do the actions. Sorry if this is confusing.
public static void sortData(short days[], String name[]) {
    String choice;
    Scanner kd = new Scanner(System.in);
    System.out.println("a. Sort by Name\nb. Sort by Day");
    choice = kd.next();                       // ????????
    switch (choice) {
    case 1: {                                // ?????????
 
     
     
    