You are viewing a single comment's thread. Return to all comments →
Hello Guys,
I have the following code for the reversed array task:
import java.util.Arrays;
public class reversedArrayTask {
public static void main(String[] args) { int n; int[] numbers = {1, 4, 3, 2}; n = numbers.length; for(int i = n-1; i >= 0; i--) { System.out.print("" + numbers[i] + " "); String str = Arrays.toString(numbers); }
This code is only passing one test case out of 8. May you assist me in figuring out what went wrong?
Thanks in advance for your contributions.
}
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
Hello Guys,
I have the following code for the reversed array task:
import java.util.Arrays;
public class reversedArrayTask {
This code is only passing one test case out of 8. May you assist me in figuring out what went wrong?
Thanks in advance for your contributions.
}