What's wrong with my dowhile?

I still very new to java and I can't figure out why this loop falls straight through, no matter what. Even if the user doesn't enter an integer, the code just assigns wepchoice a null value.

System.out.print("Which do you choose? ");

boolean continueloop=true;

Scanner sc =new Scanner(System.in);

do{

try{

int wepchoice = sc.nextInt()-1;

player.setWeapon(startwep[wepchoice]);

continueloop=false;

}catch (InputMismatchException inputMismatchException){

sc.nextLine();

System.out.println("Invalid response, try again.");

}

}while (continueloop);

No runtime error, no compiling problems. Just doesn't repeat the loop.

I can't recall ever having this much trouble with a loop before.(Though I

AM very new to exception handling).

Help?

[1354 byte] By [Dreeba] at [2007-11-27 7:45:33]
# 1
Nevermind folks, I fixed it.I deleted all my class files and re-installed the project in eclipse and that did it.Thanks to anyone who looked at this and went "hrrrmmmm!"
Dreeba at 2007-7-12 19:26:16 > top of Java-index,Java Essentials,New To Java...