Source Code : Gets the a single bit of the target.
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Gets the a single bit of the target.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
//package org.ancora.SharedLibrary;
/**
* Methods for bit manipulation.
*
* @author Joao Bispo
*/
public class Util{
private static final int MASK_BIT_1 = 0x1;
/**
* Gets the a single bit of the target.
*
* @param position
* @param target
* @return
*/
public static int getBit(int position, int target) {
return (target >>> position) & MASK_BIT_1;
}
}
Thank with us