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 using just basic java, no java.io or anything like that pleasebat method Simulate two die rolls by generating two random numbers in

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!