This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply 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...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Java's code conversions - How could I name a boolean variable?
 
Similar Threads
how to call Jsp in servlet
Return same hashCode value for CaseInsensitive strings
Struts 2 hidden values
primitive conversion/assignment conversion?
a question on private instance variable