(int n, int i)
| 7 | |
| 8 | //Set ith Bit |
| 9 | public static int setIthBit(int n, int i) { |
| 10 | int bitMask = 1<<i; |
| 11 | return n | bitMask; |
| 12 | } |
| 13 | |
| 14 | //Clear ith Bit |
| 15 | public static int clearIthBit(int n, int i) { |
nothing calls this directly
no outgoing calls
no test coverage detected