Multiplication Table implemented in Java