ConvertDataTypes.comConvert data types programming in one click !

Convert boolean to char in Java

    9526 hits
  • boolean vIn = true;
  • char vOut = (char)(vIn?1:0); //0x01