Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { /** * 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"); 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"); } public static void print(double[] probs, String string, String end) { for (int i = 0; i < probs.length; i++) { System.out.print(probs[i] + string); } System.out.print(end); } }