import java.util.Scanner;
class game{
public static void main(String[] args){
System.out.print("确定方块的大小 : ");
Scanner s = new Scanner(System.in);
int big = s.nextInt();
char[][] arr = new char[big][big]; //定义一个Char类型的数组,并确定方块的大小
int hang = 0;
int lie = 0;
int longd = 0;
while(longd < big){
System.out.print("请输入第"+longd+"个数:"); //放入数组,接收一个数转换一次,并在有一的位上存入“*”
Scanner l = new Scanner(System.in);
int zhuang = l.nextInt();
for(hang=0;hang<big;hang++){
if(zhuang%2>0){
arr[lie][hang]='*';
}
else{
arr[lie][hang] = ' ';
}
zhuang = zhuang/2;
}
lie++;
longd++;
}