File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 agree. Here's the link:
subject: forgot the class name....
It's not a secret anymore!