Can someone please tell me why the switch statement is not recognizing the gat String variable.  The IDE tells me that a primitive is required (int, char, short ....), but it found a string.
String gat = temp[i];
switch (gat) {
    case "a":
        output[i] = 12 * k;
        break;
    case "b":
        output[i] = 23 * k;
        break;
    case "c":
        output[i] = 34 * k;
        break;
}