@@ -0,0 +1,616 @@
+/**%0A * Problem: https://leetcode.com/problems/summary-ranges/%0A */%0A%0Apublic class Solution %7B%0A    public List%3CString%3E summaryRanges(int%5B%5D nums) %7B%0A        List%3CString%3E list = new ArrayList%3CString%3E();%0A        for(int i=0; i%3Cnums.length;) %7B%0A            int j = i+1;%0A            for(;j%3Cnums.length; j++) %7B%0A                if(nums%5Bj%5D - nums%5Bj-1%5D == 1) continue;%0A                else break;%0A            %7D%0A            if (i+1 == j) %7B%0A                list.add(%22%22 + nums%5Bi%5D);%0A            %7D else %7B%0A                list.add(%22%22 + nums%5Bi%5D + %22-%3E%22 + nums%5Bj-1%5D);%0A            %7D%0A            i = j;%0A        %7D%0A        return list;%0A    %7D%0A%7D%0A

Create Summary_Ranges.java