be.erwinsmout
Class MyConsole

java.lang.Object
  extended by be.erwinsmout.MyConsole

public class MyConsole
extends java.lang.Object

Provides a Console.format() method targeted at the System console, and that quietly disregards the case where the System console is null, thus avoiding a nullpointerexception

Author:
Erwin

Method Summary
static void format(java.lang.String consoleMessage)
          Displays the given consoleMessage on the System console, unless the System console is null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

format

public static void format(java.lang.String consoleMessage)
Displays the given consoleMessage on the System console, unless the System console is null.

Parameters:
consoleMessage - A message to be displayed on the system console