Banking application in simple java code