I'm giving you two separate suggestions. As helloworld mentioned, the API is there to be used, and a good programmer knows how to use it. If I were giving a job interview, I might ask how a person...
Type: Posts; User: KevinWorkman
I'm giving you two separate suggestions. As helloworld mentioned, the API is there to be used, and a good programmer knows how to use it. If I were giving a job interview, I might ask how a person...
Kenneth- Your solution is a bit of a hybrid between mine and helloworld's (better) suggestion. As it is, you're going to have a problem determining where the array indexes actually stop.
Also,...
The answer is to use an ArrayList.
You could also create a method that takes an array of length N, and an element to be added to the array, and a method that returns a new array of length N+1 that...