Java Array Output printArray(Object[] arry, String specialText)

Here you can find the source of printArray(Object[] arry, String specialText)

Description

print Array

License

Apache License

Declaration

public static void printArray(Object[] arry, String specialText) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static void printArray(Object[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i].toString());
        }/*from  w w  w  .j  a  v  a 2s  .c o m*/
    }

    public static void printArray(long[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }

    public static void printArray(int[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }

    public static void printArray(byte[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }

    public static void printArray(boolean[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }

    public static void printArray(short[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }

    public static void printArray(float[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }

    public static void printArray(double[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }

    public static void printArray(char[] arry, String specialText) {
        for (int i = 0; i < arry.length; i++) {
            System.out.println(specialText + arry[i]);
        }
    }
}

Related

  1. printArray(int[] arr)
  2. printArray(int[] array)
  3. printArray(int[][] array, String arrayLabel, String rowLabel, String columnLabel)
  4. printArray(int[][] num)
  5. printArray(Object array)
  6. printArray(Object[] data)
  7. printArray(Object[] in)
  8. printArray(String lt, String[] arr, String rt)
  9. printArray(String name, int[] array)