MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / sortArray

Method sortArray

Programs/SortNonBoundary.java:52–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51 }
52 void sortArray()
53 {
54 int c = 0;
55 for(int i=0; i<n-1; i++)
56 {
57 for(int j=i+1; j<n; j++)
58 {
59 if(B[i]>B[j])
60 {
61 c = B[i];
62 B[i] = B[j];
63 B[j] = c;
64 }
65 }
66 }
67 }
68 void printArray()
69 {
70 for(int i=0;i<m;i++)

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected