Simple Java Programs Day 4: Dice Roller (Summarizes Rolls)
This is the second version of the third day project! This one, instead of returning every single roll, summarizes the rolls for you. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print(“Times to roll dice: “); int numberOfDiceRolls = input.nextInt(); int rolledTimes = 1; int[] rollTallies […]