Re: Please help! Error message whilst compiling (; expected)

Posted 29 November 2008 - 08:31 AM

Here you go....
I moved the whole creatlists function outside of the main, it should work now. I also changed your println so that it compiled as it threw an error.

Basically when you do result = createlists(args) you are calling the createlists function,giving it the string args and result equals whatever createlists() returns. You had put the function INSIDE the main, when it needs to go outside which was your problem.