/*To display table of given number*/
/*Save as : Demo_table.java*/
import java.lang.* ; class table { int num,t; table(int a) { num=a; } void display() { System.out.println("Table of :"+num); for(int i=1;i<=10;i++) { t=num*i; System.out.println(+t); } } } class Demo_table { public static void main(String arg[]) { table t1=new table(5); t1.display(); } }