What is program logic behind the above pgm.In the getBoolean(), we are checking whether the number is generated randomly is zero. If so, we return false elase we return true. Correct me, if i am wrong.
Whether the if statment returns the boolean expr. that is if(boolean) is possible in
java. I think I am messing up something?