@@ -0,0 +1,611 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=1757%0A%0Apublic class Justifier %7B%0A%09public static String%5B%5D justify(String%5B%5D textIn) %7B%0A%09%09StringBuilder textOut = new StringBuilder();%0A%09%09int maxLength = 0;%0A%09%09%0A%09%09for (String s : textIn) %7B%0A%09%09%09if (s.length() %3E maxLength) %7B%0A%09%09%09%09maxLength = s.length();%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09for (int i = 0; i %3C textIn.length; ++i) %7B%0A%09%09%09if (textIn%5Bi%5D.length() %3C maxLength) %7B%0A%09%09%09%09for (int j = 0; j %3C ( maxLength - textIn%5Bi%5D.length() ); ++j) %7B%0A%09%09%09%09%09textOut.append(%22 %22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09textOut.append(textIn%5Bi%5D);%0A%09%09%09textOut.append(%22,%22);%0A%09%09%7D%0A%09%09%0A%09%09return textOut.toString().split(%22,%22);%0A%09%7D%0A%7D%0A

Create Justifier.java