The getProperty method in the System class can be used to display the system properties defined for your environment. Here is an utility program which takes the property name as the command line argument and prints out its value on the stdout.
class ShowSysProp{ public static void main(String[] args) { // Take care of the cmd line args checks String progArg = args[0]; System.out.println(progArg+":"+System.getProperty(progArg)); }}Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.























