I need help in programing - whats wrong with this - I run it on editplus 2

import java.text.*;

class Dice7

{

private static int roll;

private static double bankRoll = 1000;

private static double bet;

private static NumberFormat nf;

private static TTimer t1;

private static int d1 = 0;

private static int d2 = 0;

private static int counter = 0;

public static void main(String[] args)

{

nf = NumberFormat.getCurrencyInstance();

System.out.println("A Game of Dice");

System.out.println();

System.out.println("Bankroll = $1000.00");

System.out.println();

makeBet();

}

private static void makeBet()

{

System.out.println("Place your bet");

bet = Double.parseDouble(MyInput.readString());

callRoll();

}

private static void callRoll()

{

System.out.println("Call your roll");

roll = Integer.parseInt(MyInput.readString());

//startAnimation();

cont();

}

private static void cont()

{

System.out.println("Dice1Dice2");

if (t1 == null)

{

t1 = new TTimer(20);

}

else

{

t1.run();

}

}

public static void startAnimation()

{

//int d1 = 0;

//int d2 = 0;

d1 = (int)(Math.random() * 6 + 1);

d2 = (int)(Math.random() * 6 + 1);

System.out.print("\r" + d1 + " " + d2);

counter++;

if (counter > 19)

{

counter = 0;

showResult();

}

}

private static void showResult()

{

System.out.println();

if ((d1 + d2) == roll)

{

System.out.println("You Win!");

bankRoll += bet;

System.out.println("Bankroll = " + nf.format(bankRoll));

}

else

{

System.out.println("You lose!");

bankRoll -= bet;

System.out.println("Bankroll = " + nf.format(bankRoll));

}

System.out.println("Do you want to play again?...press Enter to play or 1 to change roll");

String a = MyInput.readString();

if (a.equals(""))

{

//startAnimation();

cont();

}

else if (a.equals("1"))

{

callRoll();

}

else

{

System.exit(0);

}

}

}

[2232 byte] By [JamesEarlCasha] at [2007-11-27 7:46:09]
# 1
http://forum.java.sun.com/thread.jspa?threadID=5184766DON'T DOUBLE POST! No help for you.
floundera at 2007-7-12 19:27:00 > top of Java-index,Java Essentials,Java Programming...