How to Make Multiplication Table of any Number using Java

Here is the code that help you to make the table. 
  1. import java.util.Scanner;  
  2. class Table  
  3. {  
  4.    public static void main(String args[])  
  5.    {  
  6.       int n, i;  
  7.       System.out.print("Enter the table number: ");  
  8.       Scanner in = new Scanner(System.in);  
  9.       n = in.nextInt();  
  10.       System.out.println("Multiplication table of "+n+" is :-");  
  11.       for ( i = 1 ; i <= 10 ; i++ )  
  12.       System.out.println(n+"*"+i+" = "+(n*i));  
  13.    }  
  14. }  
Thank you, keep learning and sharing.