I need to Convert My result set to an array of Strings. I am reading Email addresses from the database and I need to be able to send them like:
message.addRe
If i understand correctly You want to see the output in one line with comma as a separator. Then instead of
System.out.println(arr[i]);
Try
System.out.print(arr[i]+",");
and remove last comma somehow.