@@ -0,0 +1,504 @@
+public class Coin%0A%7B%0A    private final int HEADS = 0;%0A    private final int TAILS = 1;%0A    private int face;%0A    public Coin ()%0A    %7B%0A        flip();%0A    %7D%0A    public void flip ()%0A    %7B%0A        face = (int) (Math.random() * 2);%0A    %7D%0A    public boolean isHeads ()%0A    %7B%0A        return (face == HEADS);%0A    %7D%0A    public String toString()%0A    %7B%0A        String faceName;%0A        if (face == HEADS)%0A            faceName = %22Heads%22;%0A        else%0A            faceName = %22Tails%22;%0A        return faceName;%0A    %7D%0A%7D%0A

Create Coin.java