08
2009

把数字转换成36进制

36进制包括0-9和a-z,只有整形的可以转换。

long i=1234567890L;
System.out.println(Long.toString(i,36).toLowerCase());

输出:kf12oi

相关日志

如转载请注明:转自Nffish's Blog [ http://nffish.com ]

本文链接地址:http://nffish.com/archives/215

Written by Nffish in: Java | 标签:, , ,

1 条评论 »

RSS feed for comments on this post. TrackBack URL


Leave a Reply

Powered By Wordpress Theme AEROTRONIC |
除非另有声明,本网站采用知识共享“署名 2.5 中国大陆”许可协议授权。