Source Code : Set MessageFormat to Locale.US
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Set MessageFormat to Locale.US

import java.text.MessageFormat;
import java.util.Date;
import java.util.Locale;
public class MessageFormatReuse {
public static void main(String args[]) {
String pattern = "{0}K was deleted on {1}.";
MessageFormat formatter = new MessageFormat(pattern);
Double kb = new Double(3.5);
Date today = new Date();
Object[] arguments = { kb, today };
formatter.setLocale(Locale.US);
System.out.println(formatter.format(arguments));
}
}
Thank with us