src/share/classes/java/lang/String.java

Print this page

        

*** 2993,3003 **** * @param i an <code>int</code>. * @return a string representation of the <code>int</code> argument. * @see java.lang.Integer#toString(int, int) */ public static String valueOf(int i) { ! return Integer.toString(i, 10); } /** * Returns the string representation of the <code>long</code> argument. * <p> --- 2993,3003 ---- * @param i an <code>int</code>. * @return a string representation of the <code>int</code> argument. * @see java.lang.Integer#toString(int, int) */ public static String valueOf(int i) { ! return Integer.toString(i); } /** * Returns the string representation of the <code>long</code> argument. * <p>
*** 3007,3017 **** * @param l a <code>long</code>. * @return a string representation of the <code>long</code> argument. * @see java.lang.Long#toString(long) */ public static String valueOf(long l) { ! return Long.toString(l, 10); } /** * Returns the string representation of the <code>float</code> argument. * <p> --- 3007,3017 ---- * @param l a <code>long</code>. * @return a string representation of the <code>long</code> argument. * @see java.lang.Long#toString(long) */ public static String valueOf(long l) { ! return Long.toString(l); } /** * Returns the string representation of the <code>float</code> argument. * <p>