Java List Print printListPair(List list)

Here you can find the source of printListPair(List list)

Description

print List Pair

License

Open Source License

Declaration

public static void printListPair(List<String> list) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    /** @METHOD */
    public static void printListPair(List<String> list) {
        if (list.isEmpty())
            System.out.println("\tNO ITEM !!");

        for (int i = 0; i < list.size(); i++) {
            System.out.print(list.get(i) + " ");
            if ((i + 1) % 2 == 0)
                System.out.println();
        }/*from ww  w.j av  a  2s . c om*/
    }
}

Related

  1. printList(List list)
  2. printList(List> list)
  3. printList(List truthTableHeader)
  4. printList(List list)
  5. printList(List list)
  6. printListStrings(List list, String listDescription)
  7. printListV(List l)
  8. printListWithDelimiter(Collection list, String delimiter)
  9. println(List text)