Greetings, I am new to Java Programming
I need to create a simply application that would display the results of two dice thrown five times and the total of those results. This is shown below in the attached file.
The problem is, I have a do-while loop that loops 6 times. Inside the loop, I have 2 random.nextInt(5) that generate random numbers. But how can I output the total? How can I make a variable equal to the sum of the two random numbers if the two random numbers are located inside a do-while loop?
Attached below is also the code I have thus far, please look at it and help me!
Thanks in advance! and Sorry if I wrote it in a confusing fashion!
(Attached below is both files: what it needs to look like, and what it currently looks like)