package systemproperties2;

/**
 * Fragt eine von aussen gesetzte Property <tt>DEBUG</tt> ab.
 * 
 * @author  Ralf Kunze (rkunze@uos.de), Institut fuer Informatik, Universitaet Osnabrueck
 * @date 27.04.2007
 */
public class MyProperties {

	public static void main(String[] args) {
		
		boolean debug = false; 
		
	    String myProperty = System.getProperty( "DEBUG"); 
	 
	    if ( myProperty != null ) 
	      debug = Boolean.valueOf(myProperty).booleanValue(); 
	 
	 
	    if (debug) 
	        System.out.println( "DEBUG = true" );
	    else
	    	System.out.println( "DEBUG = false" );

	    System.out.println( Boolean.getBoolean("DEBUG") ); 
	}

}
