You might want to copy the system.img to somewhere else first in case of bootloops.
$ cp ~/Library/Android/sdk/system-images/android-23/google_apis/x86/system.img ~/system.img
public class RandomSort { | |
public RandomSort(int[] i) { | |
int counter = 0; | |
System.out.println("I'll sort " + i.length + " elements..."); | |
while (!isSorted(i)) { | |
shuffle(i); | |
counter++; | |
} | |
System.out.println("Solution found! (shuffled " + counter + " times)"); |
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz