Question: Write a program that stores your ID Number in an array of integers then do the following: 1. Print the array by using for-each loop.
Write a program that stores your ID Number in an array of integers then do the following:
1. Print the array by using for-each loop.
2. Reverse the order of the array by using a loop and an integer variable called temp.
3. Print the array after reverse by using for-each loop.
Show a screenshot of the output (if there is no screenshot of the output, the student shall get a zero mark for this question).

run: My Id number before reverse: 17007890 My Id number after reverse: 09870071 BUILD SUCCESSFUL (total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
