import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class RandomTest
{
private List list=new ArrayList();
public void doMain()
{
Random r=new Random();
for(int i=0;i<100;i )
{
int nextint=r.nextInt();
list.add(new Integer (nextint));
}
int sum=0;
for(int i=0,n=list.size();i<n;i )
{
int value=(Integer)list.get(i);
sum =value;
}
System.out.println(sum);
}
public static void main(String[] args)
{
new RandomTest().doMain();
}
}