/* Buborék rendezés */ class Program { public static void main(String args[]) { int[] tomb = {3, 8, 2, 4, 5, 1, 6}; int n = 7; // A tömb elemeinek száma for(int i= n-1; i>0; i--) for(int j=0; j tomb[j+1]) { int tmp = tomb[j]; tomb[j] = tomb[j+1]; tomb[j+1] = tmp; } for(int i=0; i