import java.io.*;
import java.util.*;
public class Adder
{private ArrayList ar = new ArrayList();
input in = new input();
public void enter()
{for (int x=1; x <= 5; x++)
{ar.add((int)(Math.random()*100)); // note we didn't need to convert
}
}
public void sort()
{for (int x=0; x < ar.size(); x++)
{int place = x;
for (int y=x+1; y < ar.size(); y++)
if (ar.get(y) < ar.get(place)) // note we didn't need to convert
place = y;
Integer temp = ar.get(x);
ar.set(x,ar.get(place));
ar.set(place,temp);
}
}
public void print()
{for (int x=0; x < ar.size(); x++)
System.out.println(ar.get(x));
}
}