Returns k-th most-significant bit.
(int k)
| 18 | |
| 19 | /** Returns k-th most-significant bit. */ |
| 20 | public int fetch(int k){ |
| 21 | if (bits[k]) return 1; |
| 22 | else return 0; |
| 23 | } |
| 24 | |
| 25 | /** Sets k-th most-significant bit. */ |
| 26 | public void set(int k, int bitValue){ |
no outgoing calls
no test coverage detected