Here you can find the source of unixPathStr(String anyPath)
public static String unixPathStr(String anyPath)
//package com.java2s; //License from project: Open Source License public class Main { public static String unixPathStr(String anyPath) { // Change front and back slashes to the OS Path separator-char direction String unixPath = anyPath.replace("\\", "/"); return (unixPath); }//from w w w . ja va 2 s .c om }