Here you can find the source of printArray(int arr[])
Parameter | Description |
---|---|
arr | a parameter |
static public void printArray(int arr[])
//package com.java2s; public class Main { /**/*from w w w . j ava 2 s . co m*/ * Prints the contents of an int array to the comnand line. * @param arr */ static public void printArray(int arr[]) { for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); } } }