Total Pageviews

Saturday, August 13, 2011

Writing Parameterized properties

Hi all,
Its quite a small thing, but very useful in live scenario.
Just two points-
write a property in file as follows-
and now use it as follows.
for using more then one replacement, do as follows.
and use it as:
One key point is- 'x' is nothing but only a token placeholder for programmer understanding where the value will be inserted. The actual thing is {1} like tokens.
Hope this will help. Cheers !!!

No comments:

Post a Comment