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

Print this page

        

@@ -2993,11 +2993,11 @@
      * @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);
+        return Integer.toString(i);
     }
 
     /**
      * Returns the string representation of the <code>long</code> argument.
      * <p>

@@ -3007,11 +3007,11 @@
      * @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);
+        return Long.toString(l);
     }
 
     /**
      * Returns the string representation of the <code>float</code> argument.
      * <p>