Java ArrayList Print print(ArrayList tokens)

Here you can find the source of print(ArrayList tokens)

Description

print

License

Apache License

Declaration

public static void print(ArrayList<?> tokens) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static void print(ArrayList<?> tokens) {
        for (int i = 0; i < tokens.size(); i++) {
            System.out.print(tokens.get(i) + " ");
        }/* w w  w .j  a  v a  2s .c o m*/
        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(int[] c1) {
        for (int i = 0; i < c1.length; i++) {
            System.out.print(c1[i] + " ");
        }
        System.out.println();
    }
}

Related

  1. prettyPrintArrayList(ArrayList input)
  2. print(ArrayList array)
  3. print(ArrayList tokens)
  4. print(ArrayList l)
  5. print(ArrayList[] al)
  6. print(ArrayList lines, int targetColumn)
  7. print(ArrayList tokens, String symbol)