(9 points)
public class List {
private class Element {
private Comparable data;
private element link;
}
private Element start, end; // beginning and end of list
private int no; // number of elements
...
Implement the list operations:
(8 points)
public class BinTree {
private class Node {
Object data;
Solmu left, right;
}
private Node root;
public BinTree() {
root = null;
}
...
Into the class, program the methods:
(8 points)