public interface StringList extends Iterable<java.lang.String>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.String s)
Add a String to the list.
|
java.lang.String |
get(int index)
Get the string at index index.
|
int |
size() |
java.lang.String[] |
toStringArray()
Return the contents of the list as an array.
|
java.lang.String[] |
toStringArray(int from,
int to)
Return a section of the contents of the list.
|
boolean add(java.lang.String s)
s - the String to add.java.lang.String get(int index)
index - the index position of the String of interest.int size()
java.lang.String[] toStringArray()
java.lang.String[] toStringArray(int from,
int to)
from - the initial index of the range to be copied, inclusiveto - the final index of the range to be copied, exclusive.