-
Re: command line arguments;(thanks)
Ok thanks it works now,with java MyClass args1
metasi
"Paul Clapham" <pclapham@core-mark.com> wrote:
>When you run your program, you do this:
>
>java yourClass arg1 arg2 arg3 arg4...
>
>If you're using a development environment, I don't know, check in the help
>associated with the "Run" option or whatever you are using to run your
>program.
>
>"metasi" <e.j.developer@juventusfan.com> wrote in message
>news:3add5a6e$1@news.devx.com...
>>
>> Hi everyone,i'm a jnewbie and i need help.
>> How can i enable my program to get command line inputs?i tried this
>>
>> main(String[] args){
>> String = args[0];
>> ..
>> }
>> and I got java.lang.ArrayIndexOutOfBoundsException.
>>
>> thank you
>> metasi
>>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks