IntegerDemo2

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));
  }
}

posted @ 2018-11-02 09:17  阿蓉  阅读(83)  评论(0编辑  收藏  举报