This should do it: public static boolean contains(String test) {. for (Choice c : Choice.values()) {. if (c.name().equals(test)) {.
確定! 回上一頁