This would be better:
for(int j = arrayOne.length; j < mergedArray.length; j++)
mergedArray[j] = arrayTwo[j-arrayOne.length]
Don't hard code magic numbers. Use variable values. What if the...
Type: Posts; User: Norm
This would be better:
for(int j = arrayOne.length; j < mergedArray.length; j++)
mergedArray[j] = arrayTwo[j-arrayOne.length]
Don't hard code magic numbers. Use variable values. What if the...
Please post the program's input and output that shows what it did and what didn't work the way you want.
A useful method for debugging with arrays:
System.out.println("an ID "+...