for(i = 0; i < n; i = i + 10) for(j = 0; j < n; j = j + 10) System.out.println("Hello");
for(i = 0; i < n; i = i + 10) for(j = 0; j < i; j = j + 10) System.out.println("Hello");
i = 0; while(i < n) { System.out.println("Hello"); i = 2*i; }
for(i = 0; i < n-1; i++) for(j = n-2; j >= i; j--) if(list[j] > list[j+1]) swap(list, j, j+1);
3 1 8 2 4 5In particular, show the array after each swap.
We also discussed two different implementations of this ADT. Implement the above ADT as a java class using an ordered array. Make sure that the search operation is implemented using binary search. Assume that each record consists of three fields. A string field to store a name, a long field to store a social security number, and a double field to store the person's pay. The social security field should be used as a key to delete from the collection and search the collection. Therefore collection of records should be maintained in increasing order of social security number.