ConvertDataTypes.comConvert data types programming in one click !

Convert boolean to short in Java

    7771 hits
  • boolean vIn = true;
  • short vOut = (short)(vIn?1:0);