Test Burbuja
1
7/21/2019 Test Burbuja http://slidepdf.com/reader/full/test-burbuja 1/1 public static void burbuja(int[]matrix){ int temp; for(int i=1;i < matrix.length;i++){ for (int j=0 ; j < matrix.length- 1; j++){ if (matrix[j] > matrix[j+1]){ temp = matrix[j]; matrix[j] = matrix[j+1]; matrix[j+1] = temp; } } } }
-
Upload
christian-suarez -
Category
Documents
-
view
213 -
download
0
Transcript of Test Burbuja
![Page 1: Test Burbuja](https://reader036.fdocuments.co/reader036/viewer/2022082908/55cf8e39550346703b8fcac7/html5/thumbnails/1.jpg)
7/21/2019 Test Burbuja
http://slidepdf.com/reader/full/test-burbuja 1/1
public static void burbuja(int[]matrix){int temp;for(int i=1;i < matrix.length;i++){
for (int j=0 ; j < matrix.length- 1; j++){if (matrix[j] > matrix[j+1]){
temp = matrix[j];matrix[j] = matrix[j+1];matrix[j+1] = temp;
}}
}}