public class Multiplication { public static void main(String[] args) { // Loop through rows, then loop through columns for (int row = 1; row <= 5; row++) { for (int col = 1; col <= 5; col++) { int product = row * col; String binary = Integer.toBinaryString(product); // System.out.print(binary + "\t"); System.out.printf("%6s", binary); } System.out.println(); } } }