54 |
import java.nio.charset.UnsupportedCharsetException; |
import java.nio.charset.UnsupportedCharsetException; |
55 |
import java.text.Collator; |
import java.text.Collator; |
56 |
import java.util.Comparator; |
import java.util.Comparator; |
57 |
|
import java.util.Formatter; |
58 |
import java.util.Locale; |
import java.util.Locale; |
59 |
import java.util.regex.Matcher; |
import java.util.regex.Matcher; |
60 |
import java.util.regex.Pattern; |
import java.util.regex.Pattern; |
1709 |
return Double.toString(d); |
return Double.toString(d); |
1710 |
} |
} |
1711 |
|
|
1712 |
|
|
1713 |
|
/** @since 1.5 */ |
1714 |
|
public static String format(Locale locale, String format, Object... args) |
1715 |
|
{ |
1716 |
|
Formatter f = new Formatter(locale); |
1717 |
|
return f.format(format, args).toString(); |
1718 |
|
} |
1719 |
|
|
1720 |
|
/** @since 1.5 */ |
1721 |
|
public static String format(String format, Object... args) |
1722 |
|
{ |
1723 |
|
return format(Locale.getDefault(), format, args); |
1724 |
|
} |
1725 |
|
|
1726 |
/** |
/** |
1727 |
* If two Strings are considered equal, by the equals() method, |
* If two Strings are considered equal, by the equals() method, |
1728 |
* then intern() will return the same String instance. ie. |
* then intern() will return the same String instance. ie. |