## Find number of consecutive 1’s in a binary number in java (example)

Given a decimal number in java (base 10) Find out number of consecutive 1’s in a binary number. 1. Examples to understand the problem statement. Given a decimal number 10 Binary representation of decimal number 10 is 1010 Consecutive 1’s in binary representation is 1. Given a decimal number 12 Binary representation of decimal number… Read More »