Get system properties - Java File Path IO

Java examples for File Path IO:Property Files

Description

Get system properties

Demo Code


import java.util.Properties;

public class PropertiesTest {
    public static void main(String[] args) {
        Properties pro = System.getProperties();
        pro.list(System.out);/*from   www .jav a2 s.c o m*/
        System.out.println(System.getProperty("file.encoding"));
    }
}

Related Tutorials