Add Code Here/JAVA/1-bit-2-bit-characters.java
<reponame>RCC-MRU/Hacktoberfest2022newclass Solution {
  public boolean isOneBitCharacter(int[] bits) {
    int idx = 0;
    while (idx < bits.length - 1) {
      if (bits[idx] != 0) {
        idx++;
      }
      idx++;
    }
    return idx == bits.length - 1;
  } 
}
