#Any idea on why this isn't working *very simple*? (I really should know myself lol)

8 messages · Page 1 of 1 (latest)

static moss
#

public class diceSimMain
{
    public static void main(String[] args)
    {
    
        Random random = new Random();
        int dice1 = 0;
        int rollCount = 0;
        dice1 = random.nextInt(6) +1;
        
        while (rollCount <10); {
            System.out.println(dice1);
            rollCount++;

        }
    }
}
ashen echoBOT
#

This post has been reserved for your question.

Hey @static moss! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

silk flame
#

there is a semicolon after your while condition

static moss
#

oh wow loooooool

#

embaressing

#

thank you

ashen echoBOT
# static moss thank you

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.