/*
**	Class:			ShowProperty
**	Version:		1.0.0
**	Author:			Dario de Judicibus
**	E-mail:			dejudicibus@geocities.com
**	Created on:		June 10th, 1998
**	Changed on:		June 10th, 1998
**	Language:		Java (jdk 1.1)
**	-------------------------------------------------------------
**	(c) 1998 - All rights reserved 
**	-------------------------------------------------------------
**	I make no representations or warranties about the suitability of
**	the software, either express or implied, including but not limited
**	to the implied warranties of merchantability, fitness for a
**	particular purpose, or non-infringement. I shall not be liable for
**	any damages suffered by licensee as a result of using, modifying or
**	distributing this software or its derivatives.
*/

/**
 *	@author Dario de Judicibus
 *	@version 1.0.0
 *	@see jdk 1.1
 *	Show the value of a property by using SystemProperties class
 */
class ShowProperty
{
	public static void main( String[] args )
	{
		String propertyName = null ;

		if ( args.length == 1 )
		{
			propertyName = args[ 0 ] ;

			String propertyValue = SystemProperties.getValue( propertyName ) ;
			System.out.println( "Property '"
							  + propertyName
							  + "' has value '"
							  + propertyValue
							  + "'." 
							  ) ;
		}
		else
		{
			System.out.println( "You must specify a property name." ) ;
		}
	}
}