java sort1 JAVA Bubble Sort package java_week2; public class C1 { public void BubbleSort(C2 p){ int j, tmp, flag; do{ flag = 0; for (j = 0; j p.Array01[j+1]){ tmp = p.Array01[j]; p.Array01[j] = p.Array01[j+1]; p.Array01[j+1] = tmp; flag = 1; } } }while(flag==1); } public boolean BinarySearch(C2 p, int iFind) { int first, last, check; first = 0; last = p.Count-1; do{ check = (first+last)/2; if(p.Array01[check]==iFind) retur.. 2015. 10. 27. 이전 1 다음