Java tutorial
//package com.java2s; import java.util.*; public class Main { public static void printAccounts(ArrayList<String> accounts) { System.out.println("Here are the list of accounts possible:"); for (int i = 0; i < accounts.size(); i++) { System.out.println((i + 1) + ": " + accounts.get(i)); } } }