Question: I am receiving an error in my code, and i can't seem to figure out how to remedy this. Senator new = processInputData(input); senatorQueue.add(new); //hashmap.put(key,
I am receiving an error in my code, and i can't seem to figure out how to remedy this.
Senator new = processInputData(input); senatorQueue.add(new); //hashmap.put(key, value) senatorMap.put(new.getName(), new);
returns this error:
Senator cannot be resolved to a variable Syntax error on token "new", delete this token Syntax error on token "new", invalid ArgumentList Syntax error on token "new", invalid Expression Syntax error on token "new", invalid Expression
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
