Solved

How do I initialize a java aplication with param?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Loop 6 61
ForLoop Example 3 49
fibonacci ten numbers 4 39
table example 4 29
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

777 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