will this be the output for this coding , when I run MonsterTestDrive at command prompt ?
a bite ? false
breath fire true
Originally posted by Andre Brito Fonseca:
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?
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 ?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton