Told you, we love sharing!
In Groovy you can use “()” with any object which in turn is same as calling call() method on that object. You can write code which are more human readable using this groovy feature. This is somewhat overriding “()” operator. The blog adds Microsoft VB array access like syntax to Java List.
Recently in my project we have use case where users have the habit of entering number as 100,000 and they write the -ve numbers as (100,000). Some times they also pur $ with the number field Initially when we were not aware of this we were populating the object like Expense expense =new Expense(params) This […]