• Post Reply Bookmark Topic Watch Topic
  • New Topic

What does { ; } do?  RSS feed

 
Urs Waefler
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code: It compiles fine. But what is the meaning of line 4?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think? You've seen those symbols used before -- what do they do?
 
Nguyen Tuyen
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is just a block of code. You have multi-line of code, put it inside this bracket for easy to view.
 
Carey Brown
Saloon Keeper
Posts: 3308
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it make any more sense viewed this way? (The compiler ignores white space.)
 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe a look at the Java® Language Specification will help … and maybe it won't. Look at §6.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!