Java hat Bolean zu int gegossen
int result = myBooleanVar ? 1 : 0;
Better Beetle
int result = myBooleanVar ? 1 : 0;