- class Day04_HanZi {
- public static void main(String[] args) {
- int [] arr ={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x06,0x00,
- 0x00,0x0B,0x02,0x00,0x80,0xF1,0xFF,0x1F,0x80,0x31,0x41,0x0C,
- 0xC0,0x30,0x3E,0x0C,0x40,0x30,0x38,0x0C,0xE0,0x30,0xC6,0x0C,
- 0xF0,0xB0,0x81,0x0C,0xD0,0xF0,0x7E,0x0F,0xC8,0x80,0x83,0x01,
- 0xC4,0xC0,0x02,0x0E,0xC0,0x20,0x0E,0x1C,0xC0,0x18,0x83,0x11,
- 0xC0,0x80,0xFD,0x03,0xC0,0x80,0xC1,0x00,0xC0,0x40,0xC2,0x00,
- 0xC0,0x30,0x64,0x00,0xC0,0x00,0x38,0x00,0xC0,0x00,0x7C,0x00,
- 0xC0,0x80,0xC3,0x07,0xC0,0x7C,0x00,0x3E,0x00,0x00,0x00,0x00};/*"ɵ",0*/
- WordPrint(arr);
- }
- public static void WordPrint(int [] arry) {
- int temp;
- for (int j = 0;j < arry.length;j++ ) {
- for (int i = 0;i < 8 ;i++) {
- temp = 0x01 << i;
- temp = temp & arry[j];
- temp = temp >> i;
- if(temp == 1)
- System.out.print("*");
- else
- System.out.print(" ");
- }
- if (((j+1)%4) == 0)
- System.out.println();
- }
- }
- }
复制代码 |
|