This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes forgot the class name.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "forgot the class name...." Watch "forgot the class name...." New topic

forgot the class name....

vivien siu
Ranch Hand

Joined: Nov 10, 2005
Posts: 143
Hi guys, I remmeber there's a class to replace certain values defined in a text file. Usually the text file is written like this:"

.....hsghdhagds {0} ghasdgashdg {1} ......... {2}"

where the class basically replaces all the {0}, {1}, {2} with other values.

I need this urgently, does anyone knows what class is used to do this?

I'm not available, my BF's name is WORK.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Hmm. It could be java.text.MessageFormat possibly?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
vivien siu
Ranch Hand

Joined: Nov 10, 2005
Posts: 143
Yes it is! Thanks Paul!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: forgot the class name....
It's not a secret anymore!