I am having trouble displaying an array by index, I don\'t know why this is happening. Any help will be greatly appreciated. Here is a snippet of my code:
// cre
// for-each loop for(String ss : tempsArray2){ // display ss System.out.println(tempsArray2[0]);
your problem is here. you're not actually using the ss variable at all, you're simply displaying the first string each time around the loop.
ss