if (argv.length == 0) System.getProperties().store(System.out, "System Properties:"); else for (int i=0; i<argv.length; i++) { String s = argv[i]; System.out.println(s + " = " + System.getProperties().getProperty(s)); }