my code should print numbers in reverse array
its not have error
but the lest for statement its not print array in reverse order
import java .util.Scanner;
public class R {
public static void main (String [] args){
Scanner input=new Scanner(System.in);
int size;
System.out.println("Size ");
size=input.nextInt();
int [] array=new int [size];
System.out.println("enter element ");
for(int i=0;i<array.length;i++)
array[i]=input.nextInt();
System.out.println(" element of array is ");
for(int i=0;i<array.length;i++)
System.out.println(" "+array[i]);
int arrayb[]=new int[size];
for(int i=0;i<array.length;i++)
{ arrayb[i] = array[i]; }
System.out.println(" element of array befor reserved ");
for(int i=0;i<arrayb.length;i++)
System.out.println(" "+arrayb[i]);
System.out.println(" element of array after reserved ");
for(int i=arrayb.length-1;i<=0;i--)
System.out.println(" "+arrayb[i]);
}}