can someone tell me how to write code for this r what it should look like.
public instance method called coinToss() which takes no arguments and
returns either true or false as the result. The method should simulate the tossing of a
fair coin, returning true to represent the result of the coin toss being heads and false
to represent tails.