package leetcode.power_of_two;

public class Solution {
    public boolean isPowerOfTwo(int n) {
        return n > 0 && ((n & (n - 1)) == 0);
    }
}
Add java solution for 231. Power of Two
Add java solution for 231. Power of Two

231. Power of Two: https://leetcode.com/problems/power-of-two/