need a method to return the value of a specific bit of an int
<p>I think I need a utility method like this:</p>

<pre><code>public static short bitValue(int intNum, short pos)
{
    short bitValue = 0;

    //check pos bit (from right to left) in the intNum integer to see its value is 0 or 1
    //And then update the bitValue for return

    return bitValue;
}
</code></pre>

<p>I am doing research to learn how to do it now. If anyone of you guy have code in hand, please share with me. thanks</p>
