0
Please help me fix/correct my code!
2 ответов
+ 5
You can't really use utf codes here so I made it ascii. you can't have two scanners as the first gets all of the inputs. I changed your loop to stop, when there isn't another integer. the string compares were testing to see if they were the same instance of string class, not if they contained the same values. the easiest input method is like:
5 2 +
5 2 -
5 2 *
5 2 /
https://code.sololearn.com/crR37L01s6t6
+ 1
John Wells Thank you! I now understand what was wrong. I greatly appreciate your correction and explaination!