This is the 99 multiplication table I memorized when I was a child. It is the Chinese version, not the digital version, and it was printed out using a Java program.
The Java source program is as follows:
package com.elephant.multiply99table;public class Multiply99table { public static String Convert(int digit) { String[] digitWords = { "ten", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; if (digit < 10) return digitWords[digit]; else if (digit == 10) return digitWords[digit / 10] + digitWords[0]; else return digitWords[digit / 10] + digitWords[0] + digitWords[digit % 10]; } public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = i; j <= 9; j++) { System.out.print(Convert(i) + Convert(j) + ((i * j >= 10) ? "" : "get") + Convert(i * j)); System.out.print(((i * j > 10) ? " " : " ")); } System.out.println(""); // Line break} }}The program run results are as follows:
One gets one gets one gets two gets three gets three gets four gets five gets five gets six gets seven gets seven gets eight gets nine gets two gets four gets eight gets five gets two gets six gets two gets eight gets five gets two gets six gets eight gets five gets two gets two gets six gets eight gets five gets two gets two gets two gets six gets two gets eight gets five gets two gets two gets two gets two gets two gets two gets two gets two gets two gets two gets two gets two gets three gets three gets three gets three gets three gets three gets three gets three gets three gets three gets three gets three gets three gets three gots two gots three gots three gots two gots three gots three gots two gots three gots three gots three gots two gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three
The above is all about this article, I hope it will be helpful for everyone to learn Java programming.