All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jfcutils.util.Printer Maven / Gradle / Ivy

Go to download

This is a Java API with utilities to work with files, strings and HTTP connections

The newest version!
package org.jfcutils.util;

import java.util.List;
import java.util.Map;

/**
 * This class is responsible to print collections in the standard output
 * @author celli
 *
 */
public class Printer {
	
	/**
	 * Print a general map
	 * @param mapToPrint the map to print
	 */
	public static void printGeneralMap(Map mapToPrint){
		for(Object key: mapToPrint.keySet())
			System.out.println(key + " " + mapToPrint.get(key));
		
	}
	
	/**
	 * Print a general List
	 * @param listToPrint the list to print
	 */
	public static void printGeneralList(List listToPrint){
		for(Object key: listToPrint)
			System.out.println(key);
		
	}
	
	/**
	 * Print a general List of maps
	 * @param list the list to print
	 */
	public static void printGeneralListOfMaps(List> list){
		for(Map map: list)
			Printer.printGeneralMap(map);
		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy