I wrote code to concatenate strings:
String inputFile = ""; for (String inputLine : list) { inputFile +=inputLine.trim()); }
But I can't use + to concatenate, so I decided to go with Guava. Therefore, I need to use Joiner.
inputFile =joiner.join(inputLine.trim());
But that gives me an error. I need help to fix this. Many thanks.
source share