ConvertDataTypes.comConvert data types programming in one click !

Convert boolean to byte in Java

    13905 hits
  • boolean vIn = true;
  • byte vOut = (byte)(vIn?1:0);