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

net.anotheria.util.debug.DebugUtilities Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package net.anotheria.util.debug;

import net.anotheria.util.NumberUtils;

import java.util.List;

/**
 * Some utilities for debugging, feel free to add yours.
 *
 * @author lrosenberg
 * Created on 13.05.2004
 * @version $Id: $Id
 */
public class DebugUtilities {
	/**
	 * Prints out an array to the stdout.
	 *
	 * @param arr a {@link java.lang.Object} object.
	 */
	public static final void printArray(Object... arr){
		for (int i=0; i  l){
		System.out.println(listToString(l));
	}
	
	/**
	 * returns the string-representation of a list
	 *
	 * @param l a {@link java.util.List} object.
	 * @return a {@link java.lang.String} object.
	 */
	public static String listToString(List l) {
		StringBuilder result = new StringBuilder();
		if( l!= null) {
			if(!l.isEmpty()) {
				for (int i=0; i  l){
		for (int i=0; imain.

* * @param a a {@link java.lang.String} object. */ public static void main(String... a){ System.out.println("1372299300 "+ NumberUtils.makeISO8601TimestampString(1372299300)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy