Java File pathSeparatorChar
Syntax
File.pathSeparatorChar has the following syntax.
public static final char pathSeparatorChar
Example
In the following code shows how to use File.pathSeparatorChar field.
import java.io.File;
/* w ww. ja v a 2 s .c o m*/
public class Main {
public static void main(String[] args) {
System.out.println(File.pathSeparatorChar);
}
}
The output:
Home »
Java Tutorial »
java.io »
Java Tutorial »
java.io »