Peter Heide wrote:One of the SCJA Exam Objectives is:
demonstrate the proper use of the "java" command including the command-line option -D
The java jdk documentation specifies:
Set a system property value. If value is a string that contains spaces, you must enclose the string in double quotes:
java -Dfoo="some string" SomeClass
My question is: How can I access this property value in the code. Does someone have an example?