The algorithm bellow is meant to allow a user to roll a die as many times as he would like, then print how many times each side was rolled and how many rolls there were total.
Then to print, iterate over faceCount and display the appropriate values (increment by one to adjust for array indexing).
Not the answer you're looking for? Browse other questions tagged java simulation dice or ask your own question.