Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   java algorithim help (http://www.go4expert.com/forums/java-algorithim-help-t28169/)

goldviper98 11Apr2012 08:07

java algorithim help
 
public class Dieroller {

public static void main(string[]args);

public int die1;
public int die2;
public int die3;
public int die4;

Roll();

public void Roll() {

Die1 = (int)(math.random()*6 + 1;
Die2 = (int)(math.random()*6 + 1;
Die3 = (int)(math.random()*6 + 1;
Die4 = (int)(math.random()*6 + 1;
String word = "good roll";

while (dieNum > 0) {
word = "good roll";
}

System.out.println(die1 + " ");
System.out.println(die1 + " ");
System.out.println(die1 + " ");
System.out.println(die1 + " ");
}
}//end class Dieroller
is what i have atm i need help on how to fix it and run it and if i am missing anything i am new to java so dont makefun because i probabally make a big mistake


All times are GMT +5.5. The time now is 03:35.