K
kvnsmnsn
In Ada with an array variable you can declare an array slice like so:
ArrayVariable( 3..5)
that behaves in every way like an array in its own right. In Java you
get a similar thing for <Strings>; if <StringObject> is a <String>
then
StringObject.substring( 3, 5)
is also a full-fledged <String>. Is there some way to do array slices
in Java too automatically, or would I have to explicitly write code to
copy the "slice" over from one array to another?
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
ArrayVariable( 3..5)
that behaves in every way like an array in its own right. In Java you
get a similar thing for <Strings>; if <StringObject> is a <String>
then
StringObject.substring( 3, 5)
is also a full-fledged <String>. Is there some way to do array slices
in Java too automatically, or would I have to explicitly write code to
copy the "slice" over from one array to another?
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_