|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--NameList
This class is a simple example of creating, initializing, and using an array.
| Constructor Summary | |
NameList(int count)
The NameList class manages an array of names. |
|
| Method Summary | |
java.lang.String |
getName(int idx)
retrieve the name at a particular index |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NameList(int count)
count - number of strings in the array| Method Detail |
public java.lang.String getName(int idx)
idx - the index of the desired name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||