There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
will this be the output for this coding , when I run MonsterTestDrive at command prompt ?
a bite ? false
breath fire true
arrrrgh true
[My Blog]
All roads lead to JavaRanch
Originally posted by Andre Brito Fonseca:
Bro,
I tried this
And there is a syntax error at the line that the method is duplicated.
How did you compiled it?
Is anything wrong with my code?
Tnks.
Originally posted by Christophe Verre:
...Here is another example (that does not compile):
[ December 13, 2007: Message edited by: Christophe Verre ]
Just make a couple of changes in your code and it will surely work.
So my question is, if boolean method just prints whatever is on println statement irrespective of boolean value true or false, then whats the significance of true or false value and why do we need it ?
[My Blog]
All roads lead to JavaRanch
Don't get me started about those stupid light bulbs. |