Solved

How do I initialize a java aplication with param?

Posted on 2009-06-27
3
220 Views
Last Modified: 2013-11-23
how should I set args[] param in a program ?
0
Comment
Question by:zipmatiz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 236
maven disable workspace resolution 1 37
Is Applet the way to go for my drag and drop system? 8 34
Website checklist for browser compatibility? 2 37
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

740 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