Specifications

Sun Services
Java™ Programming Language
Module 5, slide 12 of 15
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Array Bounds
All array subscripts begin at 0:
public void printElements(int[] list) {
for (int i = 0; i < list.length; i++) {
System.out.println(list[i]);
}
}