You are trying to add an array of strings in a list...
Why you re making your life difficult?
Try this:
ArrayList a=new ArrayList();
for(int i=0;i<names.length;i++)
{
a.add(names[i].concat(new Integer(i).parseInt(i)));
}
If you wanna print your list try:
System.out.println(a); // You get the hole list
or try:
for (int i=0;i<a.size();i++)
System.out.println(a.get(i));
This code is written on the fly, and not compiled, and maybe has a bug.But i think it is working.The
philosophy is right.
Farewell.
