Here you can find the source of bitboardToString(final long l)
public static String bitboardToString(final long l)
//package com.java2s; //License from project: Open Source License public class Main { /** Takes a bitboard and returns a 64 character string representation */ public static String bitboardToString(final long l) { final String lString = Long.toBinaryString(l); final byte paddingZeros = (byte) (64 - lString.length()); final StringBuilder b = new StringBuilder(64); for (byte i = 0; i < paddingZeros; i++) { b.append("0"); }/* w w w. j av a 2 s . c o m*/ for (byte i = 0; i < lString.length(); i++) { b.append(lString.charAt(i)); } return b.toString(); } }