Syntax error on tokens [duplicate]
问题 This question already has an answer here: Unknown error relating to syntax of tokens 1 answer I am getting an error which i don't understand: Multiple markers at this line - Syntax error on token(s), misplaced construct(s) - Syntax error on tokens, delete these tokens The following is my code for the class, error occurs in line 8 (marked): import java.util.*; public class stringCalculator { String operator_array[] = {"+", "-", "/", "*", "(", ")"}; Queue<Integer> outputQueue = new LinkedList