Given a dictionary:
1=f00
2=bar
3=larodi
.
.
.
and some html files like:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
content content content {1} bla
bla bla {3} &%$*#$*$%# {2} and so on...
</body>
</html>
How to replace the keys in the files with their values with java? I've read about java.text.MessageFormat, but cannot come up with a way to use it.