Q:

Subroutine dice rolling assignment

I'm just learning subroutines and I'm still very, very amateurish at this. My assignment asks me to toss two dice, display what the dice display (random numbers), display total of the two die, and let the program continue until 7 or 11 is the total. We haven't done anything on arrays, so I don't know if I should use them or not. 
Also, I was going to use a for loop, but how would I get the program to stop at either 7 or 11 using it? Should I try another loop?
Please help guide me on what I have to do! I'm very confused about how to make the methods and put them into the main method. Just an explanation would do!
Thank you!

A:

Here's the pseudocode for this problem. I won't give you the actual code but this will set you in the right direction:
Loop forever: {
    Integer A = Random #1-6
    Integer B = Random #1-6
    Integer total = A + B

    If total == 7 or total == 11 BREAK from the loop

    Print total

}

Some more hints: Looping forever is usually achieved by setting up a while loop whose condition is always true. For example, while (true) or while (1 == 1).
Also, look into the java.util.Random class for generating a random number. It's really straightforward and it's good to start learning how to use the Java docs early in your learning process.

