Coin Flip Random Java

import java.util.Random;
public class coinFlip {
    public static void main (String[] args){
        String[] coin = {"Tails","Heads"};
        Random random= new Random();
        int randomNumber=random.nextInt(coin.length);
        System.out.println(coin[randomNumber]);
    }
}
Breakable Boar