Java Array Dump dump(String t, String[] arr)

Here you can find the source of dump(String t, String[] arr)

Description

dump

License

Apache License

Declaration

public static void dump(String t, String[] arr) 

Method Source Code

//package com.java2s;
/*/*from w ww.j  av a 2  s.  com*/
Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
    
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    
   http://www.apache.org/licenses/LICENSE-2.0
    
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    
See the License for the specific language governing permissions and
limitations under the License.
*/

public class Main {
    public static void dump(String t, String[] arr) {
        System.out.println("--------" + t + "-------------");
        for (int i = 0; i < arr.length; i++) {
            System.out.println("#" + i + "='" + arr[i] + "'");
        }
    }
}

Related

  1. dump(double[][] a)
  2. dump(final StringBuilder buffer, final byte[] data, final int offset, final int length)
  3. dump(String name, byte[] in)
  4. dump(T[] from, T[] to)
  5. dump_octets(byte[] oct)
  6. dump_strarr(String[] arr, String doc)
  7. dumpArray(final float[] array, final int maxElemsPerLine)