Answer Posted / ami singh
ya all people all right
class Amit
{
public static void main(String [] args)
{
for(int i =0;i<args.length;i++)
{
System.ou.println("value" + args[i]);
}
}
javac Amit.java
java Amit asad fgh jkl // value pass through command
value :asad fgh jkl
ami singh amitsing2008@gmail.com
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is string pool?
Explain jdk, jre and jvm?
What best practices should you follow while writing multithreaded code in java?
What is == in java?
What is a conditional equation?
Is space a character in java?
Why is singleton class used?
What is main string [] args?
Can singleton class be serialized?
how to deploy apache tomcat server to weblogic server in java
What is parameter example?
What is the latest version of java?
Does every java program need a main?
What's the purpose of using break in each case of switch statement?
What exceptions occur during serialization?