Here you can find the source of printArray(int[] arr)
public static void printArray(int[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static void printArray(int[] arr) { printArray(arr, "\t"); }//w w w . j a v a 2 s . c o m public static void printArray(int[] arr, String sep) { for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + sep); } System.out.println(); } public static void printArray(long[] arr, String sep) { for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + sep); } System.out.println(); } public static void printArray(String[] arr, String sep) { for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + sep); } System.out.println(); } public static void printArray(String[] arr) { printArray(arr, " "); } }