Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spacing around identifiers

 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a recent submission, I had a line similar to the following:
private static int getNumber( int num, String str )
and received the following nitpick:
"spacing around all identifiers (including between identifier and punctuation)"
Is it correct to put a space between the identifier and the comma, like:
private static int getNumber( int num , String str ) ???
 
Joel Cochran
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you got it!
------------------
I'm a soldier in the NetScape Wars...
Joel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic