Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

It seems strange in MessageResourse.properties file...

 
Bhavesh Sangwan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
O Hi...

look on this code in my messageResourse.properties file..

Is not it strange...
What is the meaning of {0} here .. what if I write {1} instead...

please explain

Thanks
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is, most likely, a parameter that is replaced dynamically. It's pretty common to define resources like this in a .properties file, retrieve them using a PropertyResourceBundle and then us the MessageFormat (<-click) class to replace the parameters with desired String fragments.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic