B. ImplementationThe Native implementation was developed in Java. Fig.1 depicts the methodonCreate, which is invoked when theAndroid application is started. Firstly, an array of integernumbers is created and initialized with the numbers in de-scending order. After that, this array is sorted using the methodbubbleSort(line 21) and printed (lines 22-25). The methodSystem.currentTimeMillisis invoked in lines 8 and 27 to collecttimes and the execution time is then computed (line 27).