Java ArrayList Print printStringArrayList(ArrayList list)

Here you can find the source of printStringArrayList(ArrayList list)

Description

print String Array List

License

Apache License

Declaration

public static void printStringArrayList(ArrayList<String> list) 

Method Source Code


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

import java.util.ArrayList;

public class Main {
    public static void printStringArrayList(ArrayList<String> list) {
        System.out.println("------------------");
        for (String word : list) {
            System.out.println(word + " ");
        }/*from w  ww  .j av a 2s . com*/

        System.out.println("\n------------------");
    }
}

Related

  1. printComboBoxView(ArrayList alOptionValue, String sDefaultValue)
  2. printEdgeCycleMembership(final int[][] cyclesData, final ArrayList[] nodeCycleMembership)
  3. printListFlat(ArrayList list)
  4. printMatrix(ArrayList> grid)
  5. printReport(ArrayList words, ArrayList searched)
  6. writeArrayList(ArrayList objects, String separator, String final_conjunction, String prefix, String suffix)
  7. writeArrayListToScreen(ArrayList readArrrayList)
  8. writeArrayListToScreen(ArrayList readArrrayList)
  9. writeToTable(String serialColumnValue, ArrayList columnValues)