import java.awt.*;

/**
 * A simple example that uses an Object that
 * has been declared but not initialized.
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class NullExample1
{
    /**
     * The entry point.
     *
     * @param args  The command line arguments (which are ignored)
     */
    public static void main(String[] args)
    {
        JMUConsole.open();
	// Establish an identity for the Object
        Color    darkRed = null;

        //[0
        // The variable darkRed has been declared as a Color
        // but not initialized

        // Print and use an Object which HAS NOT yet been initialized
        JMUConsole.println(darkRed.toString());
        JMUConsole.println(darkRed.brighter());        
        //]0

        JMUConsole.close();        
    }
}
