Answers for "print array java without loop"

0

print array java without loop

import java.util.*;
  
class MyArrays {
    public static void main(String[] args)
    {
        // Get the array
        int arr[]= { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
        // Print the array
        System.out.println("Array: "+ Arrays.toString(arr));
    }
}
Posted by: Guest on April-27-2021

Code answers related to "print array java without loop"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language