Checks for a condition and displays a message if the condition is false.
public static void assert( boolean condition, String message )
condition
The condition to check.
message
A message to display if the condition parameter evaluates to false.
It is good practice to guard your coding assumptions with the use of asserts. This method will be omitted from your code unless you have the DEBUG conditional compile switch set.