Solved

How do I initialize a java aplication with param?

Posted on 2009-06-27
3
216 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
Comment Utility
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
Comment Utility
And a hint:
20 points wont attract much attention to your question. Consider raising it
0
 

Author Closing Comment

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now