+ 6

Java, Roll the Dice

Hi, guys! I made a code that simulates a dice rolling and shows how frequently some numbers coming up. Here is the code: https://code.sololearn.com/c7fHZ9ukEHRl Now I want prompt the user to enter the number of dice rolls and use a loop to repeatedly call a method that simulates a dice roll and return the total of the two dice to main, keeping track of the rolls in an array in main, and end the program by showing the results of the rolls. I'm trying to make output like this: https://goo.gl/3dBPMq I'm a beginner and I hope experienced programmers can help me to correct this code. Any help is much appreciated!

8th Feb 2018, 10:29 PM
DIY Mods
DIY Mods - avatar
2 odpowiedzi
+ 8
well, I looked how to do this online(is it bad?), but not at the coursehero and it's not copied. Compare with any code you are talking about and I guarantee you that it's different. Instead of searching the internet and playing in Sherlock Holmes, you could hint me with a pseudocode. Your "help" was much appreciated. P.S: code that I looked at was created by Greg Brannon and was posted 6 years ago at https://coderanch.com. Jaspreet Saini copied his code even without modifying it.
8th Feb 2018, 10:20 PM
DIY Mods
DIY Mods - avatar
+ 5
Thank you! It's really nice of you. Seriously. When I don't know where to begin from, I looking for examples that were posted by people who know how to do that. SpaceX doesn't start to build rockets from the scratch, I believe, so don't blame me too hard, please :)
8th Feb 2018, 10:34 PM
DIY Mods
DIY Mods - avatar