public static void main(String args[]){
        NextPowerOf2 np = new NextPowerOf2();
        System.out.println(np.nextPowerOf2(4));
    }
http://www.geeksforgeeks.org/next-power-of-2/
src/com/interview/bits/NextPowerOf2.java