@@ -0,0 +1,402 @@
+public class Solution %7B%0A%0A    public int findMaxConsecutiveOnes(int%5B%5D nums) %7B%0A%0A        int max = 0;%0A        int current = 0;%0A%0A        for (int i = 0; i %3C nums.length; i++) %7B%0A%0A            if (nums%5Bi%5D == 1) %7B%0A                current++;%0A                max = Math.max(max, current);%0A            %7D else if (nums%5Bi%5D == 0)%7B%0A                current = 0;%0A            %7D%0A%0A        %7D%0A%0A        return max;%0A%0A    %7D%0A%0A%7D%0A

Create : 485 Max Consecutive Ones