- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmp.java
More file actions
Latest commit
26 lines (16 loc) · 465 Bytes
/
Copy pathtmp.java
File metadata and controls
26 lines (16 loc) · 465 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
publicclasstmp{
publicstaticvoidmain(Stringargs[]){
for(intblock = 0; block < 20; block++){
int_byte = (block / 8);
intbit = (block%8);
System.out.printf("block: %d byte: %d bit:%d\n",block, _byte, bit);
}
System.out.println("\n\n");
for(intbyte_num = 0; byte_num < 3; byte_num++){
for(intbit_num = 0; bit_num < 8; bit_num++) {
intblock = (byte_num * 8) + bit_num;
System.out.println(block);
}
}
}
}