file separator in Java

For convenience, Java offers two options to retrieve the local separator character: a system property and a static variable defined in the File class. Both of the following examples will output the separator character:
```
System.out.println(System.getProperty("file.separator"));
System.out.println(java.io.File.separator);
```