This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes spacing around identifiers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "spacing around identifiers" Watch "spacing around identifiers" New topic

spacing around identifiers

Joe McGuire
Ranch Hand

Joined: Mar 19, 2001
Posts: 293
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

Joined: Mar 23, 2001
Posts: 301
you got it!
I'm a soldier in the NetScape Wars...

Wait a minute, I'm trying to think of something clever to say...<p>Joel
I agree. Here's the link:
subject: spacing around identifiers
It's not a secret anymore!