CODING:
import java.util.Arrays;
class arry
{
public static void main(String[] args)
{
int[] num={5,13,24,18,9};
System.out.print("The Array Element->");
System.out.print(Arrays.toString(num));
System.out.print("\nIn Reverse Order\nThe Array Element ->");
for(int i=num.length-1;i>=0;i--)
System.out.print(num[i] + " ");
}
}
class arry
{
public static void main(String[] args)
{
int[] num={5,13,24,18,9};
System.out.print("The Array Element->");
System.out.print(Arrays.toString(num));
System.out.print("\nIn Reverse Order\nThe Array Element ->");
for(int i=num.length-1;i>=0;i--)
System.out.print(num[i] + " ");
}
}
Comments
Post a Comment