Hey everyone, Im working on a few java programs for a class and this one i can't seem to find an answer anywhere for. I need to write a program that roll's a dice, which is simple, then i have to have it roll the dice 20 times. Also simple. But then i have to show it all as one string of numbers and find the greatest number of same numbers in a row, and put Brackets around them. Here is a actual question.:
-Write a program that generate a sequence of 20 random die tosses and that prints the die values, marking only the longest run.
and marking the longest run is my problem.... any sugestions?