void deleteTransaction() { System.out.println("Enter the transaction Id to be delete"); Scanner in = new Scanner(System.in); int tid = in.nextInt(); for (Customer c : customers.values()) { for (int t : c.TransactionId) { if (t == tid) { c.TransactionId.remove(t); transactions.remove(t); } } } }