@chiragkalia : You dont have to declare package name . You should read FAQ’s regarding submission guidelines for various languages . Also the class name should be “Main” and nothing else .
If that code is for the ATM problem, you should follow the Input and Output formats described strictly as they are given on problem description.
Namely, all the “rubbish” you are printing to stdout, like: System.out.println("Not Enough Money");, System.out.println("Withdrawl Successful"); etc, should be totally removed in order to get AC!
Yes , i didn’t notice that you are printing messages . You program should not print anything apart from the required output . Remember you program will be judged by a machine and it has to match required output character by character .