Java Integer to Binary ItoB(int x)

Here you can find the source of ItoB(int x)

Description

Ito B

License

Open Source License

Declaration

public static int ItoB(int x) 

Method Source Code

//package com.java2s;
/*//from   w  w  w .j a  va 2  s  . c  o  m
 * @(#)gl_util.java 0.3 06/11/20
 *
 * jGL 3-D graphics library for Java
 * Copyright (c) 1999-2006 Robin Bing-Yu Chen (robin@ntu.edu.tw)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version. the GNU Lesser
 * General Public License should be included with this distribution
 * in the file LICENSE.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 */

public class Main {
    public static int ItoB(int x) {
        return (x & 0x000000ff);
    }
}

Related

  1. intToBinary(int i)
  2. intToBinary(int i, int byteLength)
  3. intToBinary(long value, int bits)
  4. intToBinString(int val, int width)
  5. itob(int i, int j)
  6. iToB(int[] intVals)
  7. itob(long integer, int[] arr)