Bool2Int
Misc is a package in Java™ Implementation of nand2tetris. It contains basic utilites and reusable codes for creation and modification of chips and its outputs.
Bool2Int Method in class Convert
public static int Bool2Int(boolean bool) {
int value;
if (bool) {
value = 1;
} else {
value = 0;
}
return value;
}Last updated