Java tutorial
//package com.java2s; public class Main { public static String separator(String path) { path = path.replace('\\', '/'); if (!path.endsWith("/")) path = path + "/"; return path; } }