java - How to find nth occurrence of character in a string? - Stack Overflow
Similar to a question posted here, am looking for a solution in Java. That is, how to find the index of nth occurrence of a character/string from a string? Example: "/folder1/folder2 ......