Java Array Print printArray(int[] array)

Here you can find the source of printArray(int[] array)

Description

print Array

License

Open Source License

Declaration

public static void printArray(int[] array) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void printArray(int[] array) {
        for (int i : array) {
            System.out.print(i + " ");
        }/* ww  w  . j a v  a2 s . c  o  m*/
        System.out.println();
    }

    public static void printArray(char[] array) {
        for (char i : array) {
            System.out.print(i + " ");
        }
        System.out.println();
    }
}

Related

  1. printArray(float[] spectrum)
  2. printArray(int A[])
  3. printArray(int arr[])
  4. printArray(int[] array)
  5. printArray(int[] array)
  6. printArray(int[] array)
  7. printArray(int[] array)
  8. printArray(int[] array)
  9. printArray(int[] array)