why do not use roundInfo.length instead of allRound.size()?? to create a single String out of an array of Strings just do astring+=array[i];