Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (Entry entry : commands.entrySet()) {
- if (myString.contains(entry.getKey())) {
- myString.replace(entry.getKey(), entry.getValue());
- //Other magic
- }
- }
- //OR, if you don't need any other magic:
- for (Entry entry : commands.entrySet()) {
- myString.replace(entry.getKey(), entry.getValue());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement