BracesError2

From FANG

Jump to: navigation, search

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 class here.
03  @author Jam Jenkins
04  */
05 public class BracesError2
06 {
07   public void methodA()
08   
09 
10   }
11 
12   public void methodB()
13   {
14 
15   }
16 }

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




Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter

Games
Games