ConvertDataTypes.comConvert data types programming in one click !

Convert boolean to byte[] in Java

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