wood burning stoves 2.0*
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java's code conversions - How could I name a boolean variable?