Java Code:
1 2 3 4 5 6 7 8 9 10 11 | import java.util.Properties; public class JavaSystemPropertiesExample { public static void main(String[] args) { Properties p = System.getProperties(); p.list(System.out); } } |
The java.lang.System.getProperties() method determines the current system properties.