码迷,mamicode.com
首页 > 其他好文 > 详细

IntegerDemo2

时间:2018-11-02 10:19:42      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:tostring   ring   sys   void   main   integer   pack   class   pac   

package cn.it;
/*
 * 十进制转其他进制 (2-36)
 * public static String toString(int i,
                              int radix)
 */
public class IntegerDemo2 {
  public static void main(String[] args) {
   //100的3进制
   System.out.println(Integer.toString(123, 2));
  }
}

IntegerDemo2

标签:tostring   ring   sys   void   main   integer   pack   class   pac   

原文地址:https://www.cnblogs.com/rong123/p/9894360.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!