@@ -0,0 +1,1416 @@
+import java.util.*;%0Aimport java.util.stream.*;%0Aimport java.io.*;%0A%0Apublic class StaticUtils %7B%0A%0A%09public static List%3CInteger%3E inputFileToIntList(File inputFile) %7B%0A%09%09List%3CInteger%3E numbers = new ArrayList%3C%3E();%0A%09%09try %7B%0A%09%09%09Scanner sc = new Scanner(inputFile);%0A%09%09%09while (sc.hasNextInt()) %7B%0A%09%09%09%09numbers.add(sc.nextInt());%0A%09%09%09%7D%0A%09%09%09sc.close();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09return numbers;%0A%09%7D%0A%0A%09public static List%3CString%3E inputFileToStringList(File inputFile) %7B%0A%09%09List%3CString%3E inputList = new ArrayList%3C%3E();%0A%09%09try %7B%0A%09%09%09BufferedReader br = new BufferedReader(new FileReader(inputFile));%0A%09%09%09String line = %22%22;%0A%09%09%09while ((line = br.readLine()) != null) %7B%0A%09%09%09%09inputList.add(line);%0A%09%09%09%7D%0A%09%09%09br.close();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%0A%09%09return inputList;%0A%09%7D%0A%0A%09public static String extractLeftSideDigits(String str) %7B%0A%09%09String res = %22%22;%0A%09%09for (int i = 0; i %3C str.length(); i++) %7B%0A%09%09%09if (Character.isDigit(str.charAt(i))) %7B%0A%09%09%09%09res = res + str.charAt(i);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return res;%0A%09%7D%0A%0A%09public static long lcm(long a, long b) %7B%0A%0A%09%09return (a / gcd(a, b)) * b;%0A%09%7D%0A%0A%09// 1 4 6%0A%0A%09public static long lcm(List%3CLong%3E n) %7B%0A%09%09if (n.size() %3C 2) %7B%0A%09%09%09return -1;%0A%09%09%7D%0A%0A%09%09long res = lcm(n.get(0), n.get(1));%0A%09%09for (int i = 0; i %3C n.size(); i++) %7B%0A%09%09%09res = lcm(res, n.get(i));%0A%09%09%7D%0A%09%09return res;%0A%09%7D%0A%0A%09public static long gcd(long a, long b) %7B%0A%09%09if (b == 0) %7B%0A%09%09%09return a;%0A%09%09%7D%0A%09%09return gcd(b, a %25 b);%0A%09%7D%0A%0A%7D

Create StaticUtils.java