I\'m trying to write a code that converts a number to binary, and this is what I wrote. It gives me couple of errors in Eclipse, which I don\'t understand. What\'s wrong wit
Here is a small bittesting code I made for Android.
int myres = bitTest(7, 128);
public int bitTest(int bit,int value) { int res = 0; int i = 0; while (i <= bit) { res = (value & 1); value = value >> 1; i++; } return res; }
Best Regards Mikael Andersson