java programming: solution to programming exercise
the modified pairofdice class /* an object of class pairofdice represents a pair of dice, where each die shows a number between 1 and 6. the dice can be rolled, which randomizes the numbers showing on the dice. */ public class pairofdice { private int die1; // number showing on the first die.