Write a program that calls a method to ask the user for 10 integersand then call
ID: 3615454 • Letter: W
Question
Write a program that calls a method to ask the user for 10 integersand then calls another methodthat prints those 10 integers to the screen in reverse order (usean array; you may not use global
variables). Name your program Lab10_Ex1.java
Note: The length operator will report the number of elementsin an array (or you can pass the
number of elements to your method via a parameter). If thearray name is: numbers, then the
number of elements in the array is stored into the int variablesize by: size = numbers.length.