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.
Type: Posts; User: aussiemcgr
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.
I would do it a little differently.
import java.util.ArrayList;
import java.lang.Math;
public class Marty {
/**
* JavaProgrammingForums.com