Skip to main content



      Home
Home » Newcomers » Newcomers » How to specify multiple arguments??
How to specify multiple arguments?? [message #26742] Tue, 08 February 2005 09:23 Go to next message
Eclipse UserFriend
Originally posted by: gfghh.hhh.com

When you enter arguments under "Run..." how do you write more than one
argument?

I have the following code:

public class RunThreads {

public static void main(String[] args) {

String clock = args[0];
String timer = args[1];
if(clock == "clock"){
new clockThread("clock").start();}
else { if(timer == "timer")
new sleepTimerThread("Timer").start();}

}
}

In the argument section I have written :

"clock", "timer"

is that correct?
Re: How to specify multiple arguments?? [message #26785 is a reply to message #26742] Tue, 08 February 2005 09:43 Go to previous message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

Try

clock timer

without quotes, and no commas.

--
Chris Laffra, http://eclipsefaq.org


"bunallo" <gfghh@hhh.com> wrote in message
news:cuai03$ki9$1@www.eclipse.org...
> When you enter arguments under "Run..." how do you write more than one
> argument?
>
> I have the following code:
>
> public class RunThreads {
>
> public static void main(String[] args) {
>
> String clock = args[0];
> String timer = args[1];
> if(clock == "clock"){
> new clockThread("clock").start();}
> else { if(timer == "timer")
> new sleepTimerThread("Timer").start();}
>
> }
> }
>
> In the argument section I have written :
>
> "clock", "timer"
>
> is that correct?
>
>
Previous Topic:Writing to log
Next Topic:How to change automated Author entry??
Goto Forum:
  


Current Time: Wed Jul 16 09:02:55 EDT 2025

Powered by FUDForum. Page generated in 0.13410 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top