|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttips.assetDemo.AssertDemo
Small piece of sample code to demonstrate the use of the assert keyword added to J2SE 1.4
Remember - compile with -source 1.4 and run with -ea or -ea:
| Constructor Summary | |
AssertDemo()
|
|
| Method Summary | |
private static void |
aMethod()
|
static void |
main(java.lang.String[] args)
Check the arguments passed to main |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AssertDemo()
| Method Detail |
public static void main(java.lang.String[] args)
private static void aMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||