Are you sure that is the code you are running? I ask because it won't compile.

Please make sure you show the code you have actually compiled and run.