@@ -0,0 +1,1017 @@
+package se.movlin.hackerrank.reviewloop;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Scanner;%0Aimport java.util.function.IntPredicate;%0A%0Apublic class Solution %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09List%3CString%3E strings = readInput();%0A%09%09%0A%09%09for(String string : strings) %7B%0A%09%09%09printString(string.toCharArray(), (i) -%3E i %25 2 == 0);%0A%09%09%09System.out.print(%22 %22);%0A%09%09%09printString(string.toCharArray(), (i) -%3E i %25 2 == 1);%0A%09%09%09System.out.println(%22%22);%0A%09%09%7D%0A%0A%09%7D%0A%09%0A%09private static void printString(char%5B%5D string, IntPredicate f) %7B%0A%09%09for (int i = 0; i%3Cstring.length; i++) %7B%0A%09%09%09if (f.test(i)) %7B%0A%09%09%09%09System.out.print(string%5Bi%5D);%0A%09%09%09%7D%0A%09%09%7D%09%09%0A%09%7D%0A%09%0A%09protected static List%3CString%3E readInput() %7B%0A%09%09List%3CString%3E strings;%0A%09%09int nrOfStrings;%0A%09%09Scanner scanner = new Scanner(System.in);%0A%09%09nrOfStrings = scanner.nextInt(); scanner.nextLine();%0A%09%09strings = new ArrayList%3CString%3E(nrOfStrings);%0A%09%09for (int i = 0; i %3C nrOfStrings; i++) %7B%0A%09%09%09strings.add(scanner.nextLine());%0A%09%09%7D%0A%09%09scanner.close();%0A%09%09return strings;%0A%09%7D%0A%09%0A%0A%7D%0A

Add solution for review loop