Java Array Print printErrInvocationString(String cls, String[] args)

Here you can find the source of printErrInvocationString(String cls, String[] args)

Description

print Err Invocation String

License

Open Source License

Declaration

public static void printErrInvocationString(String cls, String[] args) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {
    public static void printErrInvocationString(String cls, String[] args) {
        System.err.println(toInvocationString(cls, args));
    }// w  w w  . j  a  v a  2s . c o  m

    public static String toInvocationString(String cls, String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append(cls).append(" invoked on ").append(new Date());
        sb.append(" with arguments:\n  ");
        for (String arg : args) {
            sb.append(' ').append(arg);
        }
        return sb.toString();
    }
}

Related

  1. printArrayFrom(int[] array, int start)
  2. printArrayInfo(int[] array)
  3. printArrayNoSpaces(int[] nums)
  4. printArrayRec(int[] workArray, int idx)
  5. printArrayToString(Object[] array)
  6. printfirstBytes(String comment, byte[] input)
  7. printFloatArray(float[] arr)
  8. printFloatArray(float[] array)
  9. println(int[] array)