Here you can find the source of print(ArrayList
private static void print(ArrayList<Long>[] al)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; public class Main { private static void print(ArrayList<Long>[] al) { for (int i = 0; i < al[0].size(); i++) { System.out.print(al[0].get(i) + ":" + al[1].get(i) + " "); }//from www . ja v a 2 s. c o m System.out.println("----------------------------------"); } }