/*输出十六进制数的十进制*/
public class Print
{
public static void main(String[] args)
{
//170
System.out.println(0xAA);
//再输出一个数的十六进制表现形式
int x = 60;
int temp1 = x/16;
if (temp1 > 9)
{
char ch1 = (char)(temp1 - 10 + 'A' );
System.out.println(ch1);
}
else
{
}
int y = x%16;
System.out.println(y);
}
}
public class Print
{
public static void main(String[] args)
{
//170
System.out.println(0xAA);
//再输出一个数的十六进制表现形式
int x = 60;
int temp1 = x/16;
if (temp1 > 9)
{
char ch1 = (char)(temp1 - 10 + 'A' );
System.out.println(ch1);
}
else
{
}
int y = x%16;
System.out.println(y);
}
}