Here you can find the source of printTuple(List
Parameter | Description |
---|---|
tuple | to be printed |
public static void printTuple(List<Object> tuple)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**// www . j a v a2s . c o m * Print one tuple to stdout. * @param tuple to be printed */ public static void printTuple(List<Object> tuple) { System.out.println("Tuple:"); int i = 0; for (Object v : tuple) { if (v instanceof String) System.out.println(" Value[" + i + "]: " + (String) v); else if (v instanceof Integer) System.out.println(" Value[" + i + "]: " + v); i++; } } }