Question: Write a java program to recognize: - Arithmetic Operators (arop): +, -,*,/ - Other Operators (otop): assignment: =, parenthesis: (, ), braces: {, }, line

Write a java program to recognize: - Arithmetic Operators (arop): +, -,*,/ - Other Operators (otop): assignment: =, parenthesis: (, ), braces: {, }, line terminator:;. Whenever any of the above operators are matched, your project should also print the respective token name "arop" or "otop" and the attribute value ADD, SUB, MUL, DIV, ASN, LPRN, RPRN, LBRC, RBRC or LNTR respectively (after printing the relational operator)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
