hi..
u should change a=in.nextInt(); as a=stdIn.nextInt(); here scanner object ref var stdIn

--- Update ---

hi..
u should change a=in.nextInt(); as a=stdIn.nextInt(); here scanner object ref...