Skip to content

Commit 194ef89

Browse files
author
beardja
committed
initial
0 parents  commit 194ef89

File tree

4 files changed

+1108
-0
lines changed

4 files changed

+1108
-0
lines changed

src/item.java

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
public class item {
2+
private Object datum;
3+
private item child;
4+
5+
public item() {
6+
this(0, null);
7+
}
8+
9+
public item(Object d) {
10+
datum = d;
11+
}
12+
13+
public item(Object d, item n) {
14+
datum = d;
15+
child = n;
16+
}
17+
18+
public void setDatum(Object d) {
19+
datum = d;
20+
}
21+
22+
public void setChild(item n) {
23+
child = n;
24+
}
25+
26+
public Object getDatum() {
27+
return this.datum;
28+
}
29+
30+
public item getChild() {
31+
return this.child;
32+
}
33+
34+
public void displayNode() {
35+
System.out.print(datum);
36+
}
37+
}

0 commit comments

Comments
 (0)