我正在尝试将“ 01010100”之类的字符串转换为ASCII表中的元素。我应该收到“ T”的答案,但我不知道该怎么做。 :( 你能帮助我吗 ?

最佳答案

尝试这个:

(char)Integer.valueOf("01010100", 2).intValue()

10-04 11:24