@@ -0,0 +1,498 @@
+public class LeetCode0070 %7B%0A    %0A    public int climbStairs(int n)%0A    %7B%0A        if (n == 1 %7C%7C n == 2) %7B%0A            return n;%0A        %7D%0A%0A        int pre1 = 2, pre2 = 1, sum = 0;%0A%0A        for (int k = 3; k %3C= n; k++) %7B%0A            sum = pre1 + pre2;%0A            pre2 = pre1;%0A            pre1 = sum;%0A        %7D%0A        return sum;%0A    %7D%0A%0A    public static void main(String%5B%5D args)%0A    %7B%0A        LeetCode0070 leetcode = new LeetCode0070();%0A        System.out.println(leetcode.climbStairs(4));%0A    %7D%0A%7D%0A

Add LeetCode0070.java