COMP – 10062 – Programming in Java
Description You will define two classes –one to represent a die with an arbitrary number of sides, and one torepresent a collection of dice. Then you will roll the entire collectionrepeatedly and use an array to build a histogram of the results. Thisassignment uses Standard Input and Output. A Die object can have any integer…