Assignment 3

If you play with fire then you will get burned. However if you have a fire extinguisher then you wont get burned.

public static boolean playingWithFire(boolean play, boolean extinguisher)

Write some code in the above method to handle the different possibilities. You will need to use if statements. As a hint you can write -

if(play)

rather than

if(play == true)

or

if(!play)

rather than

if(play == false)

 

 
Basics
Menu
Search