Java Bit String From toBit(boolean f)

Here you can find the source of toBit(boolean f)

Description

to Bit

License

Open Source License

Declaration

public static char toBit(boolean f) 

Method Source Code

//package com.java2s;

public class Main {
    public static char toBit(boolean f) {
        return f ? '1' : '0';
    }//from w w  w.j ava 2  s. c om
}

Related

  1. toBit(byte value, int index)
  2. toBitMask(int numBits)
  3. toBits(final byte b)
  4. toBits(int b)