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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!