Here you can find the source of printReport(ArrayList
public static void printReport(ArrayList<Integer> words, ArrayList<Integer> searched)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; public class Main { public static void printReport(ArrayList<Integer> words, ArrayList<Integer> searched) { System.out.println("Example:"); for (int i = 0; i < words.size(); i++) { System.out.println(String.format("%5s", Integer.toBinaryString(words.get(i))).replace(' ', '0')); }/*from w ww.j a va 2s. com*/ System.out.println("Founded words:"); for (int i = 0; i < searched.size(); i++) { System.out.println(String.format("%5s", Integer.toBinaryString(searched.get(i))).replace(' ', '0')); } System.out.println(); } }