Hi all ,

I am having some difficulties to run the below program and willing for some help..

-Create a method called countSixes in which you roll a die 100 times and count the number of sixes that result. The method should return (not output) the result. So if you invoke countSixes() and out of the 100 times, there were 23 sixes, your method should return 23.

here's what i did so far !!

public class Titel1

{

public static void main(String[] args)

{

// Create one dice, each with 6 sides

public static int countSixes()

{

int die1 = new Die(6);

countSixes = 0;

for ( int i = 0 ; 100>i ;i++)

{

die1.roll();

if (die1.conutSixes()== 6)

return countSixes;

}

}