• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Anyone who has a Java VM and know what Reverse Polish Notation is: please help me test my homework.

notfred

Lifer
You don't have to help me do my homework, jsut see if you can break it. 🙂

Here's a java class
Download it, and then at the command prompt type "java inToClass" to run it.

It should either give a correct answer, or a descriptive error message for any input you give it. If it gives an incorrect answer or no answer at all, let me know 🙂

It takes input in the form of: a=b+c*(d+e)
the first two characters are required, as per the assignment, valid input has to begin with "x=".
b+c*(d+e) can be any infix expression.

Note that it operates on letters rather than numbers.


Thanks for your help 🙂
 
Back
Top