LoginSignup
1
1

More than 5 years have passed since last update.

型変換メモ

Last updated at Posted at 2012-05-21

byte配列⇒文字列

    byte[] xml;
    String str = new String(xml);

文字列⇒byte配列

    String str;
    byte[] xml = str.getBytes();

StringBufferクラス
http://akademeia.info/index.php?Java%2F%C9%B8%BD%E0%A5%AF%A5%E9%A5%B9%2FStringBuffer%A5%AF%A5%E9%A5%B9#nf511c14

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1