// "Convert variable 'res' from String to StringBuilder" "true-preview"

public class Main {
    String test(String[] strings) {
        String res = "";
        for (String s : strings) {
            if (!res.isEmpty()) {
                res = "." + res;
            }
            res = s <caret>+ res;
        }
        return res;
    }
}
