I am using this code and ds list prints for example:
aaa.(bbb)
aaa.(eee)
ccc.(ddd)
...
I need it to print the strings related to aaa in the same brackets using, to separate them.
Example: aaa.(bbb,eee)
What should I change in my code?
I know the code is not complete, but it would complicate it a lot if I added everything. The goal is while iterating on templist for the string s, to add templist elements in the format mentioned.
List<String> templist = new ArrayList<String>() ;
List<String> ds = new ArrayList<String>() ;
String s = "aaa"
String selecfin = null ;
for(int j =0;j<templist.size(); j++){
String selecP = templist.get(j);
selecfin = s+".("+selecP+")";
ds.add(selecfin);
}
aaa.(xxx). When does the value inschange?