Here you can find the source of print(final List> concatenatables)
public static void print(final List<?> concatenatables)
//package com.java2s; import java.util.List; import java.util.ListIterator; public class Main { public static void print(final List<?> concatenatables) { final ListIterator<?> iterator = concatenatables.listIterator(); System.out.print(" ==== "); while (iterator.hasNext()) { final Object a = iterator.next(); System.out.print(a);/*from w ww. jav a2s . c om*/ if (iterator.hasNext()) System.out.print(" x "); } System.out.println(); } }