當預期結果與實際執行相同時,斷言成立,否則斷言不成立。 Java 在JDK 1.4 之後提供斷言陳述,有兩種使用的語法: assert boolean_expression; assert boolean_expression ...
確定! 回上一頁