Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String test = "temp:content:region:deposit:up";
- System.out.println(test.replace(test.substring(test.lastIndexOf(":"), test.length()), ""));
- System.out.println(test.substring(0, test.lastIndexOf(":")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement