package com.packclass;/*Integer类的常用方法*/public class Demo07 {public static void main(String[] args) {// 1、static int parseInt(String s)System.out.println(Integer.parseInt("123") + 1);// 124// 2、public static String toBinaryString(int i)System.out.println(Integer.toBinaryString(3));//11System.out.println(Integer.toHexString(16));//10System.out.println(Integer.toHexString(17));//11}}
