Question: Given the array list of primes below, write a loop to print its elements in reverse order, starting with the last element. Place a space

Given the array list of primes below, write a loop to print its elements in reverse order, starting with the last element. Place a space after every element.
import java.util.Arraylist;
public class PrimesDemo
{
public static void main(String args)
{
Arraylist Integer > primes = new ArrayList >();
primes.add(2);
f primes.add(3);
primes.add(5);
primes.add(7);
primes add(11);
for Your code goes here *
 Given the array list of primes below, write a loop to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!