---------------------------------------------------------------------
The bolded line in the above code causing an error: " The method join(Object[], String) in the type StringUtils is not applicable for the arguments (Collection<String>, String) "

String Utils already have the method " join(Collection collection, String string), i confirmed that. But Still i got the same error.
Can anyone help me in solving this error.

12-14-2010, 08:46 AM

masijade

You need to pass it an array not a list.

12-14-2010, 09:37 AM

shihad_s

Hi masijade, I cant get u. Can u explain with the actual code

12-14-2010, 10:01 AM

masijade

You are calling join with a Collection as the first argument and you should be calling it with an array as the first argument (see the API docs for Collection and it's toArray method). And no, I cannot "explain with code" I am not here to do your work for you. I told you what you are doing wrong (and the exception did too if you would actually read it) and gave you a hint on how to fix it. Now, it is up to you to at least try to do it.