This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java's code conversions - How could I name a boolean variable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Watch "Java New topic
Author

Java's code conversions - How could I name a boolean variable?

André Asantos
Ranch Hand

Joined: Nov 23, 2009
Posts: 234
Java's code conversions - How could I name a boolean variable?

1 - boolean isReadyWork;

or

2 - boolean readyWork;

Thanks in advance!
André AS
saipraneeth nallapareddy
Ranch Hand

Joined: Dec 02, 2009
Posts: 159
the first approach is mostly preffered in java bean method signatures(java naming convention)
boolean isReadyWork(){}

for declaring a boolean variable you can just stick to camel case in your scenario readyWork is apt.
André Asantos
Ranch Hand

Joined: Nov 23, 2009
Posts: 234
thank you so much...
 
GeeCON Prague 2014
 
subject: Java's code conversions - How could I name a boolean variable?