BlueJ Arguments

E

Edward Rice

I am a newbie at a Java IDE called BlueJ (www.bluej.org). I have come
across the problem that I do not know how to send arguments to the
program in BlueJ, but I do know how to send arguments using a command
line prompt. Could someone give me some advice?

Thanks in advance,
Edward Rice
 
S

Steve Horsley

I am a newbie at a Java IDE called BlueJ (www.bluej.org). I have come
across the problem that I do not know how to send arguments to the
program in BlueJ, but I do know how to send arguments using a command
line prompt. Could someone give me some advice?

Thanks in advance,
Edward Rice

Command line starting of a program calls the public static void
main(String[]) mothod. You can do this in BlueJ by right-clicking the
class's icon and selecting the main method. Bluej then presents you with a
dialog where you can specify the contents of the array. Type the arguments
in between the braces, remembering to put commas between them and to put
every String value in double-quotes like this:
{"arg1","arg 2", "arg three"}
then click OK.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top