Java ArrayList Print printReport(ArrayList words, ArrayList searched)

Here you can find the source of printReport(ArrayList words, ArrayList searched)

Description

print Report

License

Open Source License

Declaration

public static void printReport(ArrayList<Integer> words, ArrayList<Integer> searched) 

Method Source Code


//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();
    }
}

Related

  1. printArrayListInt(ArrayList list)
  2. printComboBoxView(ArrayList alOptionValue, String sDefaultValue)
  3. printEdgeCycleMembership(final int[][] cyclesData, final ArrayList[] nodeCycleMembership)
  4. printListFlat(ArrayList list)
  5. printMatrix(ArrayList> grid)
  6. printStringArrayList(ArrayList list)
  7. writeArrayList(ArrayList objects, String separator, String final_conjunction, String prefix, String suffix)
  8. writeArrayListToScreen(ArrayList readArrrayList)
  9. writeArrayListToScreen(ArrayList readArrrayList)