Solved

How do I initialize a java aplication with param?

Posted on 2009-06-27
3
219 Views
Last Modified: 2013-11-23
how should I set args[] param in a program ?
0
Comment
Question by:zipmatiz
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
sirtam earned 20 total points
ID: 24728519
When you start a java application from cmd you write someting like
javac myApp.java  --this compiles
java myApp one 2 cake --this starts the program with two parameters

one, 2 and cake will be in the string array args
0
 
LVL 2

Expert Comment

by:sirtam
ID: 24728524
And a hint:
20 points wont attract much attention to your question. Consider raising it
0
 

Author Closing Comment

by:zipmatiz
ID: 31597561
Thanks very much. I set the lowest possible points cause i thought its so newbie :)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
web services creation SOAP vs REST 5 56
Way to decrease size of apk file 9 86
servlet example 17 51
Java syntax, or is it Selenium 6 30
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question