Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Organ
- {
- public String description;
- public Organ circulatorySystem;
- public Organ respitorySystem;
- public Organ upperGI;
- public Organ LowerGI;
- public HashMap <String, String> organMap;
- /**
- * Create an Organ described "description". Initially, it has
- * no exits. "description" is something like "a kitchen" or
- * "an open court yard".
- */
- public Organ (String description)
- {
- this.description = description;
- organMap = new HashMap <String, String>();
- fillOrganMap();
- }
- /**
- * method to fill hashmap with organs
- *
- **/
- public void fillOrganMap ( )
- {
- organMap.put < "Circulatory System", "Respitory System">;
- organMap.put <"Respitory System", "Circulatory System">;
- organMap.put <"Upper GI", "Lower GI">;
- organMap.put <"Lower GI", "Upper GI">;
- }
Add Comment
Please, Sign In to add comment