阅读背景:

在Java中使用regex for switch-statement

来源:互联网 
void menu() {
    print();
    Scanner input = new Scanner( System.in );
    while(true) {
        String s = input.next();
        switch (s) {
        case "m": print(); continue;
        case "s": stat(); break;
        case "[A-Z]{1}[a-z]{2}\d{1,}": filminfo( s ); break;
        case "Jur1": filminfo(s); break; //For debugging - this worked fine
        case "q": ; return;
        }
    }
}
void menu() {
    print();
    Scanner input = 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: