Compare commits

..

No commits in common. "8a11dbf1b8746e13c56b3a78dd4d69e3b273ff3b" and "993b91d67160fe181880739d62ba4b1373c402e9" have entirely different histories.

3 changed files with 0 additions and 42 deletions

View File

@ -1,19 +0,0 @@
public class Calculator {
Node<Symbol> erzeugeBeispielBaum() {
Node<Symbol> root = new Node<Symbol>(new Symbol("+"));
root.left = new Node<Symbol>(new Symbol("3"));
root.right = new Node<Symbol>(new Symbol("*"));
root.right.left = new Node<Symbol>(new Symbol("5"));
root.right.right = new Node<Symbol>(new Symbol("8"));
return root;
}
}

View File

@ -15,16 +15,4 @@ public class Symbol {
public boolean istPlus() { public boolean istPlus() {
return s == "+"; return s == "+";
} }
public boolean istOperator() {
return istPlus() || istMal();
}
public boolean istZahl() {
return !istOperator();
}
public int getInt() {
return Integer.parseInt(s);
}
} }

View File

@ -1,11 +0,0 @@
public class Test {
public static void main(String[] args) {
Calculator c = new Calculator();
Node<Symbol> root = c.erzeugeBeispielBaum();
}
}