level 1
xiao78050576
楼主
//Main.java
public class Main {
public static void main(String[] args) {
int[] data = { 0xFFFFFFFF, 0xEF083B87, 0xD6FEF5BB, 0xBAFEEEBB,
0xBB3EEEBB, 0x839EE087, 0xBBEEEEBB, 0xBA1EEEBB };
String[] str = new String[data.length];
for (int i = 0; i < str.length; i++) {
str[i] = Integer.toBinaryString(data[i]);
str[i] = str[i].replaceAll("0", "* ");
str[i] = str[i].replaceAll("1", " ");
}
System.out.println(str[0]);
for (int i = 1; i < 7; i++) {
System.out.println(str[i]);
}
System.out.println(str[6]);
System.out.println(str[7]);
System.out.println(str[0]);
}
}
2011年06月09日 03点06分
1
public class Main {
public static void main(String[] args) {
int[] data = { 0xFFFFFFFF, 0xEF083B87, 0xD6FEF5BB, 0xBAFEEEBB,
0xBB3EEEBB, 0x839EE087, 0xBBEEEEBB, 0xBA1EEEBB };
String[] str = new String[data.length];
for (int i = 0; i < str.length; i++) {
str[i] = Integer.toBinaryString(data[i]);
str[i] = str[i].replaceAll("0", "* ");
str[i] = str[i].replaceAll("1", " ");
}
System.out.println(str[0]);
for (int i = 1; i < 7; i++) {
System.out.println(str[i]);
}
System.out.println(str[6]);
System.out.println(str[7]);
System.out.println(str[0]);
}
}

