Search This Blog

Java: File separator and path separator

File.separatorFile.pathSeparator
Window\;
Unix(Mac, Linux)/:
import java.io.File

public class Test {
    public static void main(String[] args){
         System.out.println(File.separator);
         System.out.println(File.pathSeparator);
    }
}

No comments:

Post a Comment