@@ -0,0 +1,1519 @@
+/*%0A  (c) Sergio Morales%0A  CodeEval Challenge: Swap Elements%0A  Date Solved: 12/20/13%0A*/%0A%0Aimport java.io.*;%0A%0Apublic class Main %7B%0A    public static void main (String%5B%5D args) throws java.io.IOException %7B%0A        File file = new File(args%5B0%5D);%0A        BufferedReader in = new BufferedReader(new FileReader(file));%0A        %0A        String line = %22%22;%0A        while (( line = in.readLine() ) != null) %7B%0A            if (line.length() %3E 0) %7B%0A                String%5B%5D numArray = line.substring(0, line.indexOf(%22:%22)).split(%22 %22);%0A                String%5B%5D swapArray = line.substring(line.indexOf(%22:%22)+1).split(%22,%22);%0A                %0A                for(int i = 0; i %3C numArray.length; ++i)%0A                    System.out.print(numArray%5Bi%5D+%22 %22);%0A                System.out.println();%0A                // Print num length%0A                //System.out.println(numArray.length);%0A                for(int i = 0; i %3C swapArray.length; ++i) %7B%0A                    String%5B%5D swaps = swapArray%5Bi%5D.split(%22-%22);%0A                    Integer firstswap = Integer.parseInt(swaps%5B0%5D.substring(1));%0A                    Integer secondswap = Integer.parseInt(swaps%5B1%5D);%0A                    String temp = numArray%5Bfirstswap%5D;%0A                    numArray%5Bfirstswap%5D = numArray%5Bsecondswap%5D;%0A                    numArray%5Bsecondswap%5D = temp;%0A                %7D%0A                %0A                for(int i = 0; i %3C numArray.length; ++i)%0A                    System.out.print(numArray%5Bi%5D+%22 %22);%0A                System.out.println(%22%5Cn%22);%0A            %7D%0A        %7D%0A  %7D%0A%7D%0A

Create swapelements.java