Tell me how to translate the character string from the type "letter" (Cyrillic) into a sequence of ones and zeros?

  • 2
    Unity-zeroes is apparently a binary representation ... a kindergarten of some kind. Tin - Barmaley
  • chopsticks and circles - karmadro4

1 answer 1

Very simple:

String.format("%16s", Integer.toBinaryString(s.charAt(0))).replace(" ", "0"); 
  • Vooo, thank you :) - Roan