Below is the syntax highlighted version of RollDie.java.
/************************************************************************* * Name: * Login: * Precept: * * Compilation: javac RollDie.java * Execution: java RollDie * * Simulate the roll of a fair six-sided die * and print the resulting number. * * % java RollDie * 4 * * % java RollDie * 1 * Web Exercise 1.3.1 *************************************************************************/ public class RollDie { public static void main(String[] args) { // how many sides on the die? _____________ SIDES = ___________________; // roll should be 1 through SIDES int roll = ________________________________________________________ // print result ___________________________________________________________________ } }