错误写法:
1 if(roomId.matches("regEx")) 2 Failure=false; 3 else{ 4 Failure=true; 5 FailureMessage="logs……"; 6 }
正确写法:
1 if(!roomId.matches("regEx")){ 2 Failure=true; 3 FailureMessage="logs……"; 4 }
错误写法:
1 if(roomId.matches("regEx")) 2 Failure=false; 3 else{ 4 Failure=true; 5 FailureMessage="logs……"; 6 }
正确写法:
1 if(!roomId.matches("regEx")){ 2 Failure=true; 3 FailureMessage="logs……"; 4 }