Here you can find the source of print(ArrayList tokens)
public static void print(ArrayList tokens)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; public class Main { /**//from w w w .j a v a 2 s .c o m * Print * */ public static void print(ArrayList tokens) { for (int i = 0; i < tokens.size(); i++) { System.out.print(tokens.get(i) + " "); } System.out.print("\n"); } public static void print(String[] files) { for (int i = 0; i < files.length; i++) { System.out.print(files[i] + " "); } System.out.print("\n"); } }