4 ms·
IO isn't the problem. The issue is that a lot of code assumes that each string character is represented by a single char value, which isn't correct.
by nradov 6y ago
IO isn't the problem. The issue is that a lot of code assumes that each string character is represented by a single char value, which isn't correct.
- LoSboccacc 6y agoyou can't do that in Java, string length is computed correctly for you and character loops give you normalised code points you have to go at greath length to get a broken character out of a valid string, including casting and cutting it intentionally