@@ -0,0 +1,2165 @@
+import java.io.*;%0A%0Apublic class Main %7B%0A%0Apublic static void main (String%5B%5D args) %7B%0A    try %7B%0A        File file = new File(args%5B0%5D);%0A        BufferedReader in = new BufferedReader(new FileReader(file));%0A        String line;%0A        %0A        while ((line = in.readLine()) != null) %7B%0A            String%5B%5D linesOfFileArray = line.split(%22%5C%5Cs%22);%0A            replaceFNWithRNEachLine(linesOfFileArray);%0A        %7D%0A    %7D catch (IOException e) %7B%0A        System.out.println(%22File Read Error: %22 + e.getMessage());%0A    %7D               %0A%7D%0A%0Aprivate static void replaceFNWithRNEachLine(String%5B%5D linesArray) %7B%0A    if (linesArray.length %3E 0) %7B%0A       for (int k = 0; k %3C linesArray.length; k++) %7B%0A        String%5B%5D splitLineArray = linesArray%5Bk%5D.split(%22;%22);%0A        String stringModifiee = splitLineArray%5B0%5D;%0A        String%5B%5D valuesOfFNandRNArray = splitLineArray%5B1%5D.split(%22,%22);%0A        stringModifiee = replaceFNWithPlaceholder(valuesOfFNandRNArray, stringModifiee);%0A        stringModifiee = replacePlaceholderWithRN(valuesOfFNandRNArray, stringModifiee);      %0A        System.out.println(stringModifiee);%0A       %7D%0A    %7D%0A%7D%0A%0Aprivate static String replaceFNWithPlaceholder(String%5B%5D valuesOfFNandRNArray, String stringModifiee) %7B%0A    for (int i = 0; i %3C (valuesOfFNandRNArray.length) / 2; i++)%7B%0A        int regexIndex = 2 * i;%0A        String regex = valuesOfFNandRNArray%5BregexIndex%5D;%0A        stringModifiee = stringModifiee.replaceAll(regex, createRegexPlaceholder(i));%0A    %7D%0A    return stringModifiee;%0A%7D%0A%0Aprivate static String replacePlaceholderWithRN(String%5B%5D valuesOfFNandRNArray, String stringModifiee) %7B%0A%09for (int j = 0; j %3C (valuesOfFNandRNArray.length) / 2; j++)%7B%0A        int replIndex = 2 * j + 1;%0A        String repl = valuesOfFNandRNArray%5BreplIndex%5D;%0A       %09stringModifiee = stringModifiee.replaceAll(createRegexPlaceholder(j), repl);        %0A    %7D%0A    return stringModifiee;%0A%7D%0A%0Aprivate static String createRegexPlaceholder(int l) %7B%0A%09String regexPlaceholder = %22i%22 + Integer.toString(l) + %22i%22;%0A%09regexPlaceholder = regexPlaceholder.replaceAll(Integer.toString(0),%22zero%22);%0A%09regexPlaceholder = regexPlaceholder.replaceAll(Integer.toString(1),%22one%22);%0A%09return regexPlaceholder;%0A%7D%0A%0A%7D%0A

Add StringSubstitution