(int bit)
| 3 | public class Question { |
| 4 | /* Flips a 1 to a 0 and a 0 to a 1 */ |
| 5 | public static int flip(int bit) { |
| 6 | return 1 ^ bit; |
| 7 | } |
| 8 | |
| 9 | /* Returns 1 if a is positive, and 0 if a is negative */ |
| 10 | public static int sign(int a) { |
no outgoing calls
no test coverage detected