Espresso: A Concentrated Introduction to Java
Type[] name
int[] grades
String[] names
new Type[size]
grades = new int[5];
names = new String[num_students + num_faculty];
new Type[] { v0, v1, ..., vn };
new int[] { 5, 3, 1 }
new String[] { "Hello", "Goodbye" }
new Fraction[] { new Fraction("1/3"), new Fraction(a,b) };
name.length
pen.println("I have recorded " + grades.length + " grades for you.");
name[index]
pen.println(names[i]);
name[index] = newvalue
grades[i] = 100;
Saturday, 5 March 2005
This page was generated by
Siteweaver on Thu Mar 30 15:24:44 2006.
The source to the page was last modified on Sun Mar 6 00:42:17 2005.
This page may be found at http://www.cs.grinnell.edu/~rebelsky/Espresso/Reference/arrays.html
.
You may wish to
validate this page's HTML
;
;
Check with Bobby