Hi all, does anyone know of a good compiler I can download for java? It would be nice if it was an IDE but it does not have to be. I currently have the j2sdk-1_4 compiler http://java.sun.com/j2se/1.4.1/download.html and it does not seem to work that well. Also I know that this is really easy, but hey I can't compile anything I make, what is wrong with this code?
public class BuckleShoe
{
public static void main(String args)
{
EasyReader console = new EasyReader();
private int choice;
do
{
System.out.print("Enter a number 1-10 (or 0 to quit):");
int choice = console.readInt ();
switch (choice)
{
case 0:
System.out.println("Bye");
break;
case 1:
case 2:
System.out.println("Buckle your shoe");
break;
case 3:
case 4:
System.out.println("Shut the door");
break;
case 5:
case 6:
System.out.println("Pick up sticks");
break;
case 7:
case 8:
System.out.println("lay them straight");
break;
case 9:
case 10:
System.out.println("A big fat hen");
break;
default:
System.out.println("invalid entry");
break;
}
} while (choice != 0);
}
}