@@ -0,0 +1,1151 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage algoPkg;%0Aimport java.io.*;%0A%0A/**%0A *%0A * @author HunterX%0A */%0Apublic class AlgoPkg %7B%0A%0A    /**%0A     * @param args the command line arguments%0A     */%0A    %0A    public static int%5B%5D swap(int a, int b)%7B%0A        a = a%5Eb;%0A        b = a%5Eb;%0A        a = a%5Eb;%0A        return (new int%5B%5D %7Ba, b%7D);%0A    %7D%0A    %0A    public static int addition( int a, int b )%7B%0A        if( b == 0 )%7B%0A            return a;%0A        %7D%0A        int sum = a%5Eb;%0A        int carry = (a&b)%3C%3C1;%0A        return addition(sum, carry);%0A    %7D%0A    %0A    public static void main(String%5B%5D args) throws IOException%7B%0A        // TODO code application logic here%0A        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );%0A        int a = 345678;%0A        int b = 7654321;%0A        int %5B%5D ret = %7B0,0%7D;%0A        for(int i = 1; i %3C= 9 ; i++)%7B%0A            for(int j = 1; j %3C= 99 ; j++)%7B%0A                ret = swap(a, b);%0A            %7D%0A        %7D%0A        System.out.println(ret%5B0%5D+%22 %22+ret%5B1%5D);%0A        int ret2 = addition(a, b);%0A        System.out.println(ret2);%0A        return ;%0A    %7D%0A%7D%0A

Create AlgoPkg.java