<< 2008/02/17 | Home | 2008/02/19 >>

文字列を16進数でダンプする - メモ

定期的に必要になりますが、毎回そらでは書けないのでメモしておきます。

for(int i = 0 ; i < str.length() ; i++){
String hex = Integer.toHexString((int)str.charAt(i));
System.out.print(hex);
}


タグ :