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