Solved

How do I initialize a java aplication with param?

Posted on 2009-06-27
3
222 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

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…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

695 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