I wrote this code and it work as this task insists, but it's not accept as a solution. What's wrong whit my code?
resultArray = (firstArray);
for (int i = 0; i < resultArray.length; i++) {
System.out.print(resultArray[i] + ", ");
}
resultArray = (secondArray);
for ( int a = 0; a < resultArray.length; a++) {
System.out.print(resultArray[a] + ", ");
}
}
}
Attila Ágoston
Level 5
I need help.
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Thomas
7 September, 13:11
When you post a question there is a little checkbox with the label 'attach code' or similar. Tick that and your code will be attached nicely formatted including task requirements. Without that it is not that easy to answer (usually). Here I'm pretty sure Codegym requires all values from first and second arrays to be in the resulting array. They probably not only check the output but the array elements, too.
0