Submitted: Nov 20 2012 / 10:53
Would be better if any of it would compile
@blood, useParamsInSomeMethod() method is symbolic in sense that you can define some method and pass expression as parameter. I thought that writing whole method will be like spoon feeding. Anyways, I will update the post.
My point is that the first example won't compile, nor will the second, nor will the third... Never mind the missing method definition, you need add not params.add
Updated the post.
Cool. Now only the first example won't compile instead of all 3... It's a step in the right direction
I am sorry, but i compiled and copied the code from IDE. Can you please let me know why it wouldn't.
My mistake, I got confused by the complete lack of code indentation. All the code should compile now
Thanks for pointing out the mistakes. I really appreciate.
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.