What do you have so far.? The Random/Math.random class will help you with getting dice values. And if you are completely lost, take a look at Trail: Getting Started (The Java™ Tutorials)