Java File separator
Syntax
File.separator has the following syntax.
public static final String separator
Example
In the following code shows how to use File.separator field.
import java.io.File;
/* www . j a va 2s . co m*/
public class Main {
public static void main(String[] args) {
System.out.println(File.separator);
}
}
The output:
Home »
Java Tutorial »
java.io »
Java Tutorial »
java.io »