PPT Slide
int [ ] coins= new int[4];
coins[0]= 1; coins[1]= 5;
coins[2]= 10; coins[3]= 25;
int [ ] coins= {1, 5, 10, 25};
An array initializer is a list of expressions enclosed in braces. It’s value is a newly allocated array whose elements are initialized with the values in the list. The length of the new array is the number of items in the array initializer. An array initializer can be used only in such a situation.
String days= {“Mon”, “Tue”, “Wed”, “Thu”,