Netprog 2002
Java Intro
32
Array Literals
•
You can use array literals like C/C++:
•
•
int[] foo = {1,2,3,4,5};
•
•
String[] names = {“Joe”, “Sam”};