Java Binary Encode toBinaryChar(boolean bit)

Here you can find the source of toBinaryChar(boolean bit)

Description

to Binary Char

License

Creative Commons License

Declaration

public static char toBinaryChar(boolean bit) 

Method Source Code

//package com.java2s;
/**//from   w  w  w .  j a v  a2  s  .c  om
 * A simple class comprised of various tools used in handling of boolean arrays and values.
 * 
 * @author Raymond Berg www.rwberg.org
 * 
 * Use is made available under the Creative Commons License. 
 * Feel free to use but leave attribution to original author throughout use.
 */

public class Main {
    public static char toBinaryChar(boolean bit) {
        return bit ? '1' : '0';
    }
}

Related

  1. toBinary(short value)
  2. toBinaryAddress(int index, int maxIndex)
  3. toBinaryArray(int input, int length)
  4. toBinaryArray(int integer, int size)
  5. toBinaryBoolean(boolean source)
  6. toBinaryClassName(String fileName)
  7. toBinaryFromHex(byte ch)
  8. toBinaryID(final String id)
  9. toBinaryIeee754String(long decimal)