RandomTest - three.Roll System.out.println"one is"...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * */ public class RandomTest{ public static void main(String[] args){ Die one, two, three; one = new Die(); two = new Die(); three = new Die(); one.Roll(); two.Roll();
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: three.Roll(); System.out.println("one is : " + one.getNumber() + "\ntwo is : " + two.getNumber() + "\nthree is : " + three.getNumber()); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online