//On my honor, I have neither received nor given any unauthorized assistance on this //examination (Assignment bubble Sort) public class bubbleSort { public static void main(String[] args) { //int[] numbers= {99,34,88,22,18,90,50,-1}; int[] numbers = {(int)(Math.random()*100), (int)(Math.random()*100), (int)(Math.random()*100),(int)(Math.random()*100),(int)(Math.random()*100), (int)(Math.random()*100),(int)(Math.random()*100),(int)(Math.random()*100)}; int temp=0; System.out.println(" BUBBLE SORT"); for(int z=0;znumbers[i+1] ) { temp = numbers[i]; numbers[i]= numbers[i+1]; numbers[i+1]=temp; } System.out.print(numbers[i]+" "); } System.out.println(""); } System.out.println(" [- DONE! -]"); } } // all rights reserved, yudosai 2019 // for studying perposes only.