forked from IF-LK-2020/rechenmaschine
Kommentare
This commit is contained in:
@@ -47,6 +47,7 @@ public class Rechenmaschine {
|
||||
|
||||
for( char buchstabe: eingabe ) {
|
||||
switch( state ) {
|
||||
//prüft auf Zahl
|
||||
case 0:
|
||||
switch( buchstabe ) {
|
||||
case '0':
|
||||
@@ -77,7 +78,7 @@ public class Rechenmaschine {
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
//weitere Zahl oder +?
|
||||
case 1:
|
||||
switch( buchstabe ) {
|
||||
case '+':
|
||||
@@ -107,7 +108,7 @@ public class Rechenmaschine {
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
// Prüft auf Rechenzeichen +
|
||||
case 2:
|
||||
switch( buchstabe ) {
|
||||
case '+':
|
||||
|
||||
Reference in New Issue
Block a user