aspose file tools*
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 Java 8 in Action this week in the Java 8 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


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?
 
Similar Threads
primitive conversion/assignment conversion?
Struts 2 hidden values
how to call Jsp in servlet
Return same hashCode value for CaseInsensitive strings
a question on private instance variable