I need to set byte value as method parameter. I have boolean variable isGenerated, that determines the logic to be executed within this method. But I can pass direc
isGenerated
You can use this solution. I found it on this very useful page
boolean vIn = true; byte vOut = (byte)(vIn?1:0);