Tuesday 26 August 2014

Get File path separator

Use the property "file.separator" to get file path separator.

public class GetProperty {
    public static void main(String args[]){
        System.out.println(System.getProperty("file.separator"));
    }
}

Output
\


                                                             Home

No comments:

Post a Comment