package ru.matevosyan.lesson_5_Array;

public class ArrayBubble{

	public int[] sort(int mas[]){

			
		for(int i = 0; i < mas.length-1; i++){

			for(int j = mas.length-1; j > 1; i--){
		
				if(mas[j] < mas[j-1]){

					int current = mas[j];
					mas[j] = mas[j - 1];
					mas[j - 1] = current;
				
				}
			}
		}

	return mas;

	}

}
@@ -77,16 +77,19 @@
 t%5B%5D sort
+Arr
 (int mas
@@ -129,18 +129,16 @@
 s.length
--1
 ; i++)%7B%0A
@@ -175,12 +175,12 @@
 j %3E 
-1; i
+i; j
 --)%7B

add ArrayBubble.java