This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java's code conversions - How could I name a boolean variable?