Integer.toHexString(9527) 会输出9527对应的16进制数 int i=9527; int j=Integer.parseInt(""+i,16); System.out.println("0x"+Integer.toHexString(j)); Integer.toHexString(9527); 看来是我理解错了,估计楼主要的是这个东西 正在学 哦,原来是这样啊,谢谢啊 留脚印 Integer,Long,Float都有静态方法可以转。 int i=9527; int j=Integer.parseInt(""+i,16); System.out.println("0x"+Integer.toHexString(j));
Java code:
int a = 9527; String bStr = "0x"+a; int b = Integer.decode(bStr);
public class Test{
public static void main(String[] args){ while(true){ System.out.println("请输入一个十进制数:"); Scanner sc = new Scanner
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 52 in the jsp file: /vip_info.jsp ÕË cannot be resolved 49: <table border="1& ......