Int2Bool
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.
Int2Bool Method in class Convert
public static boolean Int2Bool(int value) {
boolean bool;
if (value == 1) {
bool = true;
} else {
bool = false;
}
return bool;
}Last updated