Java IO Tutorial - 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;
//from   w w w .  ja  v  a 2s. co m
public class Main {

  public static void main(String[] args) {

    System.out.println(File.pathSeparatorChar);

  }
}

The output: