Variables Vs. Parameters

Hello,

I'm attempting to call a method (with several parameters) from another class. I've instantiated a new instance of said class, but passing the parameters is something which is posing a bit of difficulty...as the parameter values are determined by command line arguments (its a console app) as well as data in a config file...this is basically what I'm looking at.

The original method within source class (named CSVToXML)

publicvoid doMain(String args[], CSVToXML app, String name){

// associated logic

What i've done to call this method is this...

CSVToXML passer =new CSVToXML();

passer.doMain(String args[], CSVToXML app, String name);

I know that's not quite correct, I get a message stating " ')' Expected"...but where those parameters aren't determined until console arguments are input, I'm not sure what to do...there. Any suggestions and/or insight?

[1089 byte] By [CallMeRexa] at [2007-11-27 8:17:17]
# 1
passer.doMain(args, app, name);You should consider learning the basics like "how to write a method call". :)
CeciNEstPasUnProgrammeura at 2007-7-12 20:02:26 > top of Java-index,Java Essentials,Java Programming...
# 2
You don't use the variable types when using them.It would be just passer.doMain(args, app, name);Also, if you don't know that, why aren't you reading the tutorials? You shouldn't be allowed to code yet.
-Kayaman-a at 2007-7-12 20:02:27 > top of Java-index,Java Essentials,Java Programming...