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 […]
Simple Java Programs Day 3: Dice Roller (Displays All Rolls)
Hey, and welcome back to my series! This is the third one, and this is a Dice Roller. This one displays every single roll in order, and does not summarize. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print(“How many times should the dice be rolled? […]
Simple Java Programs Day 2: Messages Spammer
This is my second project of this series, and this one copies a message you give and spams it a desired number of times inside of the console. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print(“What message should be repeated? “); String messageContent = input.nextLine(); […]
Simple Java Programs Day 1: Age-to-Text

Hi guys, I know I haven’t been posting for a while, so I’m going to start fresh with a few small java projects, like this one that I’ve just made, a machine that takes your age and gives you which stage of life you’re in. import java.util.Scanner; public class Main { public static void main(String[] […]