Update 18.3.2022

master
mittelni 2022-03-18 12:54:48 +01:00
parent 993b91d671
commit d4b9dc25f2
1 changed files with 12 additions and 0 deletions

View File

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