about | help | code help+videos | done | prefs |
Basic array problems -- no loops.. Use a[0], a[1], ... to access elements in an array, a.length is the length (note that s.length() is for Strings). Allocate a new array like this: int[] a = new int[10]; // length 10 array
See the Java Arrays and Loops Help document for help.
Copyright Nick Parlante 2017 - privacy