answersLogoWhite

0

public class Table {

public static void main(String[] args) {

int num=Integer.parseInt(args[0]);

System.out.println("Table");

for(int i=1;i<=10;i++)

{

System.out.println(i+"*"+num+"="+i*num);

}

}

}

its the program using command line arrgument...but you have to write it in notepad and then save is into bin folder..then go through your Dos promt and then complie it by javac and then run it by java comment.in run time you should pass the value as a command line then execute...but if you want to excute this program into netbins its not allowed..then you have to take the number as a static way...

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you find missing number if the mean is given using percentages?

Convert it.


How do you find the number of words can be formed using the given letters?

cookies


How do you calculate the number of pixels in an inch?

The number of pixels in an inch of a photo or a screen or a camera is given by the software. You can change it if the program alow you to do so. Thanks rylwy


Find out the square root for that given number using string?

Halv that given number,Make a square that has that half number as the length of a side.Stretch the string across the diagonal of the square from corner to corner.The length of the string is the square root of the given number


Program for finding the factorial of the two given number using constructor?

kjhk


To print the multiples of a given number using loops in c?

Yes, it is possible to do that.


What is the least possible number you can form using the digits in the given number 751 350 848 209?

001234557889 is the answer.


What is a Flow chart for finding factorial of a given number using recursion function?

no answer....pls post


How do you make an average using given numbers?

add them all together and then divide the answer by the number of numbers.


What is a way to make a approximation to a given number by using fewer digits called?

Less


How can you get position of number from given some number by using array in c language?

Traverse the array from index 0 until you find the number. Return the index of that number.


What number of wavelengths passing through a given point per second?

The number of wavelengths passing through a given point per second is determined by the frequency of the wave passing through that point. It is calculated using the formula: number of wavelengths = frequency of the wave.