Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package testapp;
- import java.util.HashMap;
- /**
- *
- * @Author Jake
- */
- public class HelpMessages {
- private static HashMap<String, String[]> helpMap = new HashMap<String, String[]>();
- public static void addMessage(String base, String ... message) {
- helpMap.put(base, message);
- }
- public static String get(String base) {
- if (helpMap.get(base) != null) {
- String holder = "";
- for (String s: helpMap.get(base)) {
- holder += "\n" + s;
- }
- return holder;
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement