[DISCUSSION] Views of immutable objects.

Ralf Ullrich news at jnana.de
Mon Jul 30 19:26:24 UTC 2007


Paulo Levi wrote:

>What about adding a method to String complementing the call toCharArray(),
>only it takes 3 arguments:
>An char array, a position and a length, that inside uses System.arrayCopy.

Isn't that exactly what

   String#getChars(0, length, charArray, dstpos)

does?

(see also 
http://java.sun.com/javase/6/docs/api/java/lang/String.html#getChars(int,%20int,%20char[],%20int) 
)

cu




More information about the core-libs-dev mailing list