Update 18.3.2022
parent
993b91d671
commit
d4b9dc25f2
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue