import java.applet.Applet;

public class bubble extends Applet {
    public void start() {
	int temp;
	int[] theArray = new int[10];
	int k;
	int j;

	for (k = 0; k < 10; k = k + 1)
	     theArray[k] = (int) (Math.random() * 100);

	for (k = 10; k > 0; k = k - 1)
	    for (j = 1; j < k; j = j + 1)
		if (theArray[j - 1] > theArray[j]) {
		    temp = theArray[j - 1];
		    theArray[j - 1] = theArray[j];
		    theArray[j] = temp;
		}
    }

}

