ConvertDataTypes.comConvert data types programming in one click !

Convert boolean to byte[] in Java

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