I'm writing a short Java program for a computer science class that has to be done under a certain size and with a limited number of semi-colons. I've already met the requirements but I'm trying to make my program even more efficient.
Right now I'm looking for a way to traverse an array with only a String and the array. Any variables I declare would not be in the same scope as the traversal, so I can't do that. I can't think of any possible way to do this and could use your help if you can think of a short solution to this problem.
Thanks,
Epsilon
Right now I'm looking for a way to traverse an array with only a String and the array. Any variables I declare would not be in the same scope as the traversal, so I can't do that. I can't think of any possible way to do this and could use your help if you can think of a short solution to this problem.
Thanks,
Epsilon