会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
信天翁游记
Wandering Albatross
博客园
首页
新随笔
联系
管理
订阅
2018年9月11日
java 字符串转16进制的方法
摘要: 方法一: 用java自带的方法 先将字符串转为字符数组,然后用Integer.toHexString方法进行转换。 缺点:中文容易乱码 方法二: 使用apache的包codec中的方法 org.apache.commons.codec.binary.Hex#encodeHexString(byte[
阅读全文
posted @ 2018-09-11 11:03 WanderingAlbatross
阅读(2486)
评论(0)
推荐(0)
编辑
公告