Search:

Type: Posts; User: jean28

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    2,341

    Re: Reverse the order of Strings in an ArrayList?

    public String reverse()
    {
    int n = coins.size();
    String reverseWords;

    for(int i = n; i == 0; i--)
    {
    String s = coins.get(n);
    reverseArray.add(s);
    }
  2. Replies
    7
    Views
    2,341

    Re: Reverse the order of Strings in an ArrayList?

    Ok, so I stated a value to the array and effectively it fixed the Exception. However, now when I print it I just get an empty array instead of the expected words in reverse order. What is wrong with...
  3. Replies
    7
    Views
    2,341

    Re: Reverse the order of Strings in an ArrayList?

    String reverseWords = reverseArray.toString();
  4. Replies
    7
    Views
    2,341

    Reverse the order of Strings in an ArrayList?

    Hey guys. I'm trying to make a class called "purse" where I make an array list and store String in it (quarters, dimes, etc), and then I print out the names of each coin I stored in the purse. I got...
Results 1 to 4 of 4