String (String... line) { StringBuilder builder = new StringBuilder(); int linePartCount = line.length; for (int i = 0; i < linePartCount; i++) { String linePart = line[i]; builder.append(linePart); if (i < linePartCount - 1) { builder.append(File.separator); } } return builder.toString(); }