Normal
String input = "ABC/DEF/GHI"; String[] result = input.split("/"); System.out.println(result[0] + "/" + result[1] + "/" + result[2]);
String input = "ABC/DEF/GHI";
String[] result = input.split("/");
System.out.println(result[0] + "/" + result[1] + "/" + result[2]);