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