Originally posted by Mohd Fifi:
but how can i copy the array and provide a shorter one i have no idea abouut this
Would you please give an example on that
thanks
Mohd
No special technique. Just use "new" to declare a smaller array, and use a loop to assign the elements -- one element at a time. (Or you may use System.arraycopy() to copy the array)
BTW, I still think that using an index parameter is better.
Henry
[ November 11, 2006: Message edited by: Henry Wong ]