ConvertDataTypes.comConvert data types programming in one click !

Convert boolean to byte[] in Java

    19470 hits
  • boolean vIn = true;
  • byte [] vOut = new byte[]{(byte) (vIn?1:0)};