Using Java Answer Following 1 Implement Method Dicestats Takes Integer Parameter Num Metho Q43832031
Using Java answer the following:
1. Implement a method diceStats() that takes an integerparameter, num. The method creates a square matrix (2-dim array) ofdie objects and rolls them all. The method returns an int array ofsize 6, containing the number of dice in the matrix for each facevalue 1-6. For example, if the matrix is of size 2 and dice havethe following face values: 2 4 4 5 the method will return0,1,0,2,1,0 You may use the Die class introduced in class.
2. Write an application that tests this method.
Expert Answer
Answer to Using Java answer the following: 1. Implement a method diceStats() that takes an integer parameter, num. The method crea…
OR