Java code snippet – How to print array? import java.util.Arrays; class Scratch{ public static void main(String[] args){ int[] arr = new int[3]; System.out.println( Arrays.toString( arr )); //prints [0, 0, 0] } } Curly hair, very fair, please share :)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Subash Chandran 25th October 2021 Leave a Comment