public class DiceGame { public static void main(String[] args) { Dice d = new Dice(); d.roll(); } } class Dice { public void roll() { // code that rolls the dice goes here } }