Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- method(String value)
- ...
- String foreDubbelHash;
- int indexDubbelHash = value.indexOf("##);
- if (indexDubbelHash > 0) {
- foreDubbelHash = value.substring(0, indexDubbelHash - 1);
- } else {
- foreDubbelHash = value;
- }
- ...
- //StringUtils has it:
- StringUtils.substringBefore(value, "##");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement