Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Node {
- private Object contentObj;
- private Node nextNode;
- public Node(Object pContent) {
- contentObj = pContent;
- nextNode = null;
- }
- public void setContent(Object pContent) {
- contentObj = pContent;
- }
- public Object content() {
- return contentObj;
- }
- public void setNext(Node pNext) {
- nextNode = pNext;
- }
- public Node getNext() {
- return nextNode;
- }
- }
- public class Karte
- {
- private String farbe;
- private String bild;
- public Karte(String pfarbe, String pbild)
- {
- farbe = pfarbe;
- bild = pbild;
- }
- public String gibFarbe()
- {
- return farbe;
- }
- public String gibBild()
- {
- return bild;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement