I have an arrayList of strings in my JDBC program, and I want to access them in order to add the contents of different columns to individual strings, but the concat method is not working for my strings, for whatever reason.
while ( project_set.next()){
for (int i=3;i<=meta.getColumnCount();i++){
int arr_pos = i-3;
String temp =project_set.getString(i) + "\n";
project_data.get(arr_pos).concat(temp);
}
}
I simplified it a lot for the purposes of this question, but temp stores the data from a column, and then I am trying to concatenate that to a spot in the arrayList, which has already been filled by an empty string.