Posts 35 Well the thing is when you write programs like this they may compil fine and even run fine but it is not a good programming habit you really need to creat the Object bankAccount first with it is fields and methods including deposit and withdrawal and any other things you feel like a bank account should have then you will have main method right a bottom to instantied that class then call on di