Please use the
CODE button; I have edited your post and you can see how much easier it is to read.
You appear to have two loops inside each other. Why?
You also have code you aren't using; you don't use the ready
String, nor the code String, for example.
I presume your Coin#flip() method simply takes a random number and gives heads 50% of the time or tails 50% of the time.
Your main method (which is, by the way, too long) doesn't seem to count until you get 3 consecutive heads. You don't seem to count anything consecutive, only the total of heads. And you don't seem to stop when you get anything from that count.