That's because you only set one string into the clipboard in your main method thus:
StringSelection stringSelection = new StringSelection (aa[i]);
clipboard.setContents (stringSelection, null);
You need to wait until you have collected all the text in the array, and then convert it into a form that you can send to the clipboard.