print array java without loop

Solutions on MaxInterview for print array java without loop by the best coders in the world

showing results for - "print array java without loop"
Laura
19 Feb 2016
1import java.util.*;
2  
3class MyArrays {
4    public static void main(String[] args)
5    {
6        // Get the array
7        int arr[]= { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
8        // Print the array
9        System.out.println("Array: "+ Arrays.toString(arr));
10    }
11}
12