Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は String を持っていstr = "0x01"ます。この文字列をそのままバイトに変換したい。
str = "0x01"
やってみstr.getBytes()ましEncodingUtils.getAsciiBytes(str)たが、各文字のバイト値が得られます。
str.getBytes()
EncodingUtils.getAsciiBytes(str)
byte 変数の値を 0x01 にしたい。
どうすればいいですか?
ありがとう