English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

using the argument passed in the main program

(i.e)

public static void main(String arg[])
{

}

run the java program as

java filename arg1 agr2 arg3 and so on...

the program takes arg1 as Ist input then arg2 as IInd input and so on...

2006-09-13 23:09:43 · answer #1 · answered by Anonymous · 0 0

Read the argv[] params from main.

2006-09-13 18:56:28 · answer #2 · answered by mdigitale 7 · 0 0

fedest.com, questions and answers