Hi Gregg !
I wanna read some Strings out of an ArrayList
and give every String an index from 01 to 15 (or something). That index should be stored into a String.
My code looks something like that:
for (int i=0; i < names.size(); i++) {
Element name = (Element)names.get(i);
out.println(i+". "+name.getFirstName());
}
The output should look like this:
01. Peter
02. Paula
...
10. Jenny
a.s.o.
Problem is, that i is an one-digit int.
O.k. ?
