@@ -0,0 +1,591 @@
+//https://www.hackerrank.com/challenges/flipping-bits%0Aimport java.io.*;%0A%0Apublic class Solution %7B%0A  private static final long MASK = (1L %3C%3C 32L) - 1L;%0A  public static void main(String%5B%5D args) throws IOException %7B%0A    StringBuffer sb = new StringBuffer();%0A    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A%0A    //For each test%0A    for(byte T = Byte.parseByte(br.readLine()); T %3E 0; --T)%7B%0A      %0A      //Get input%0A      long N = Long.parseLong(br.readLine());%0A      %0A      //Print output%0A      sb.append(N %5E MASK).append(%22%5Cn%22);%0A    %7D%0A    System.out.print(sb);%0A  %7D%0A%7D%0A

Create flipping-bits.java