I have this DieRolling class that we are making for AP Computer Science. This method is supposed to return all the numbers they have rolled in a "neat" manner. Here is the code:
public void printNum()
{
    for (int i=0;i<100;i++)
    {
        System.out.println("Roll " + (i+ 1) + ": " + numbers[i]);
    }
}
I need to return the whole for loop, but I cant figure out how. What should I do? Thanks!
(This is my first post on here so sorry if it is kind of messed up)
 
     
     
     
     
    