Question: using just basic java, no java.io or anything like that please bat method Simulate two die rolls by generating two random numbers in the range
using just basic java, no java.io or anything like that please

bat method Simulate two die rolls by generating two random numbers in the range of 1 to 6 for each die. Store the die values in int variables and use these values to determine the result of batting. Print the two roll values, then at the end of the method, return an int which depicts a value based on the table below: Return value Die 1 1 Die 2 Represents Single Double Triple Home Run 2 4 4 4 Any other combination Sum is even Sum is odd Strike Ball -2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
