I'm trying to print out the numbers that the user enters and then reprint them in reverse order but i can't even do the first part this is what i have so i could really use some help thanks
import java.util.*;
public class ReverseArray
{
public static void main(String[] args)
{
int [] array = new int[10];
Scanner s = new Scanner (System.in);
int num = 0;
System.out.println("Enter numbers: ");
num = s.nextInt();
int i = 0;
for ( i = 0; i< array.length; i++)
array[i] = num;
System.out.print(array[i] + ", ");
}
}