posted 9 years ago
Well, it's "ok", but maybe not the best way to solve the problem. I would use two for/next loops, one for each array input, and set the output array's elements until there are more than two, then exit. But looking at the program you have, here are some thoughts:
* The following code:
calls make2 twice, doing the same processing two times. I'd call make2 once, putting the result into an array, then print the array.
* There's no reason to put list into an array. Just use the get(index) method of java.util.List.
All things are lawful, but not all things are profitable.