I tried an Assert Example
it works fine in commandprompt. i run the code using following command.
java -ea AssertionExample
but it is not showing Exception while running in netBeans Example described that assertion will work when it enables during runtime So we add ea.
How we can enable assertion in netbeans ??
-ea in the boxIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With