@@ -0,0 +1,782 @@
+/*Leetcode happy number*/%0A%0Aclass SolutionHPNUmber %7B%0A    public boolean isHappy(int n) %7B%0A        int temp = n;%0A        List%3CInteger%3E arr = new ArrayList%3CInteger%3E();%0A        if(n%3C0 %7C%7C n == 0)%7B%0A            return false;%0A        %7D%0A        while(true) %7B%0A            %0A            int theta = temp;%0A            int sum = 0;            %0A            %0A            while(theta %3E 0)%7B%0A                int t1 = theta %2510;    %0A                sum = sum + t1*t1;%0A                theta = theta/10;%0A            %7D%0A            %0A            if(sum == 1)%7B%0A                return true;%0A            %7D%0A            %0A            if(arr.contains(sum))%7B%0A                return false;%0A            %7D%0A            else%7B%0A                arr.add(sum);%0A            %7D%0A            temp = sum;%0A        %7D%0A        %0A    %7D%0A%7D%0A

Create SolutionHPNUmber.java