Is this a joke?

    new String[] {"-t", INPUT_TABLE, "-m", MAIL_ACCOUNT_ID}

seems better than farting around with lists.

On Thu, Feb 23, 2012 at 2:03 PM, Ioan Eugen Stan <[email protected]>wrote:

>
>  String[] args = new String[2];
>> args[0] = "max";
>> args[1] = "7";
>> args[0] = "4";
>> int max = Math.main(args);
>>
>>
> A more elegant solution is:
>
> List<String> argList = new LinkedList<String>();
> argList.add("-t");
> argList.add(INPUT_TABLE);
> argList.add("-m");
> argList.add(MAIL_ACCOUNT_ID);
>
> argList.toArray(new String[ argList.size() ]);
>
>
> Cheers,
>
> --
> Ioan Eugen Stan
> http://ieugen.blogspot.com
>

Reply via email to