From FANG
It is an error to have a close brace without a corresponding open brace.
The close brace on line 10 should have a corresponding open brace on line 8.
|
01 /**
02 * All about my classclass is a group of fields and methods used for making objects here.
03 * @authorthis is the Javadoc tag for documenting who created the source code Jam Jenkins
04 */
05 publicpublic is used to indicate unrestricted access (any other class can have access) classclass is a group of fields and methods used for making objects BracesError2
06 {open braces start code blocks and must be matched with a close brace
07 publicpublic is used to indicate unrestricted access (any other class can have access) voidvoid means the method does not return a value methodA()
08
09
10 }close braces end code blocks and must match an earlier open brace
11
12 publicpublic is used to indicate unrestricted access (any other class can have access) voidvoid means the method does not return a value methodB()
13 {open braces start code blocks and must be matched with a close brace
14
15 }close braces end code blocks and must match an earlier open brace
16 }close braces end code blocks and must match an earlier open brace
|
Compiler Errors:
----------
1. ERROR in BracesError2.java (at line 7)
public void methodA()
^
Syntax error on token ")", { expected after this token
----------
1 problem (1 error)
Download/View BracesError2.java