Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.09 seconds.

  1. Replies
    16
    Views
    11,844

    Re: ArrayList Problem

    Ya, I thought about that afterwards. That is a better one because ArrayListName.size() will change the range of the random numbers when you add more items to the array.
  2. Replies
    16
    Views
    11,844

    Re: ArrayList Problem

    I would do it a little differently.


    import java.util.ArrayList;
    import java.lang.Math;

    public class Marty {

    /**
    * JavaProgrammingForums.com
Results 1 to 2 of 2