Is An Integer A Power Of Two?code computationWill FaughtMarch 20, 20131 minuteJava:boolean power2(int x) { return x != 0 && (x & (x - 1)) == 0; } A power of two must be greater than zero.