for(int x=0;x<8;x++) x<8是什么意思啊? 求助 麻烦朋友了
==================================
public class JinzhiDemo3 {
/**
* @param args
*/
public static void tohex(int number){
char[] biao={'0','1','2','3',
'4','5','6','7',
'8','9','A','B',
'C','D','E','F'};
for(int x=0;x<8;x++){ //x<8是什么意思啊?
int temp=number%15;
System.out.println(biao[temp]);
number=number>>>4;
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
tohex(60);
}
}
|