Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. public class Node {
  2. private Object contentObj;
  3. private Node nextNode;
  4.  
  5. public Node(Object pContent) {
  6. contentObj = pContent;
  7. nextNode = null;
  8. }
  9.  
  10. public void setContent(Object pContent) {
  11. contentObj = pContent;
  12. }
  13.  
  14. public Object content() {
  15. return contentObj;
  16. }
  17.  
  18. public void setNext(Node pNext) {
  19. nextNode = pNext;
  20. }
  21.  
  22. public Node getNext() {
  23. return nextNode;
  24. }
  25.  
  26. }
  27.  
  28.  
  29.  
  30. public class Karte
  31. {
  32. private String farbe;
  33. private String bild;
  34. public Karte(String pfarbe, String pbild)
  35. {
  36. farbe = pfarbe;
  37. bild = pbild;
  38. }
  39.  
  40. public String gibFarbe()
  41. {
  42. return farbe;
  43. }
  44.  
  45. public String gibBild()
  46. {
  47. return bild;
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement