@@ -0,0 +1,439 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Consecutive1sInBinaryNumbers %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int n = in.nextInt();%0A        String str=Integer.toBinaryString(n);%0A%09%09String strArr%5B%5D=str.split(%220%22);%0A%09%09Arrays.sort(strArr);%0A%09%09System.out.println((strArr%5BstrArr.length-1%5D).length());%0A    %7D%0A%7D%0A

Create Consecutive1sInBinaryNumbers.java