Here you can find the source of setBitTo0(final long word, final int idx)
private static long setBitTo0(final long word, final int idx)
//package com.java2s; //License from project: Open Source License public class Main { private static long setBitTo0(final long word, final int idx) { return (~(1l << idx) & word); }//from www . java2 s. c om }