Copied a piece of Java code from the Web into eclipse, adjusted the format, the obvious problem of eclipse hints, mainly the space, deleted, but still in the last semicolon there is a hint "Syntax error, insert"} "to complete Block ", just beginning to think may be '} ' pairing problem, carefully examined it again, found no problem. Also think it may be a semicolon into a Chinese semicolon, all the semicolon deleted, re-enter the English semicolon, but the error is still there.
Carefully review the code again, confirming that the code is not a problem. To Baidu Search, this problem is still common, but did not find a unified standard answer, some say is a Chinese semicolon problem, some say is '} ' pairing problem, but have tried before, invalid. Finally, still do not superstitious, oneself again from beginning to end manual input code, did not make any change, just oneself manually input once, wonderful is, unexpectedly no error!
I think the copy-and-paste code from the Web page is bringing some strange, invisible formatting to eclipse, which has always prompted this error.
Java error Hint: Syntax error, insert "}" to complete Block