This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
hello , i am having problem with System.arraycopy() method i am getting NullPointerExceptions with it. What i want to do is just to copy a few elements from one array to another so this method seems convinient for me. I know i can do this by hand myself but if it's there for me why not use it. Here is what i tried and failed.
[This message has been edited by Ruslan Ivanov (edited June 27, 2001).]
posted 15 years ago
Change String copy; to String copy = new String[#]; where # is the size you want to make the second array and it will work.