Results 1 to 3 of 3
- 04-08-2008, 01:08 PM #1
[SOLVED] Passing parameters in Eclipse
Hello,
Does anyone here know how to pass parameters in Eclipse :confused:
For example:
How do you pass a parameter to Eclipse when you Run the code?Java Code:public static void main(String[] args) { String test = args[0]; System.out.println(test); }
Thanks.Last edited by DonCash; 04-08-2008 at 04:47 PM. Reason: Added semicolon!
Did this post help you? Please
me! :cool:
- 04-08-2008, 04:07 PM #2
First of all...don't forget your semicolon at the end of "String test = args[0]" ;)
Go to the "Run" menu and click "Open run dialog..." and you will be at the Main tab. To the right of that is the Arguments tab. Program arguments is where you put stuff separated by spaces(strings can have spaces by using quotes around it). Hope this meets all your needs.
- 04-08-2008, 04:46 PM #3
Similar Threads
-
Passing a value..
By Lagarto in forum New To JavaReplies: 3Last Post: 01-23-2011, 05:58 PM -
JNI - passing and returning parameters by value
By java_to_c in forum New To JavaReplies: 0Last Post: 01-31-2008, 08:49 PM -
Passing Environment Variable in Eclipse Europa
By ajaymenon.k in forum EclipseReplies: 0Last Post: 11-19-2007, 10:08 AM -
is synchronization on method passing local variables as parameters needed
By reddzer in forum Java ServletReplies: 0Last Post: 11-10-2007, 04:47 PM -
get parameters in jsp
By cecily in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-05-2007, 04:29 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks