ATM Java code