java - How do I create a memory for a calculator with hashmap? -
okay building simple postfix calculator in java , asked create couple functions it, 1 struggling memory. heard hashmap, , did research on it, don't think quite understand how implement program yet. way program work user start , postfix calculator , prompted input this: java postfixcalc integer postfix calculator memory > but has option assign variable input, example: > = 3 5 + 1 - 7 > bee = 3 * 21 > bee + 28 > bee 3 % 0 > = 4 4 > 57 57 > 2 c + c not found > mem a: 4 bee: 21 > exit here's code far. im figuring should tokenize input , put in array list first in order variable name, unless theres better way. import java.util.*; import java.io.*; public class program6 { public static void main(string args[]) { system.out.println("servando hernandez"); system.out.println("rpn command line calculator"); scanner scan = new scanner(system.in); system.out.print(">"); ...