tips.assetDemo
Class AssertDemo

java.lang.Object
  extended bytips.assetDemo.AssertDemo

public class AssertDemo
extends java.lang.Object

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

AssertDemo

public AssertDemo()
Method Detail

main

public static void main(java.lang.String[] args)
Check the arguments passed to main


aMethod

private static void aMethod()