李建平 发表于 2012-1-10 10:48
public static void main(String[] args) {
int a=60,b;
long inum = 922337203685477580L;
谢了 我开始怎么没想到+‘0’ 呵呵
class a
{
public static void main(String[] args)
{
int a=60,b;
while(a>0)
{
b=a&15;
System.out.print((char)(b>10?b-10+'A':b+'0'));
a=a>>>4;
}
}
} |