/[classpath]/classpath/java/lang/String.java
ViewVC logotype

Diff of /classpath/java/lang/String.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.58.2.11 by gnu_andrew, Tue Sep 20 18:46:28 2005 UTC revision 1.58.2.12 by tromey, Sun Sep 25 02:55:12 2005 UTC
# Line 54  import java.nio.charset.IllegalCharsetNa Line 54  import java.nio.charset.IllegalCharsetNa
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;
# Line 1708  public final class String Line 1709  public final class String
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.

Legend:
Removed from v.1.58.2.11  
changed lines
  Added in v.1.58.2.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26