How would you review and write these Java searchs, sorts and shuffling things? [closed]

2 days ago 3
ARTICLE AD BOX

I am cramming for a test and I would need help with learning some different java searching and sorting algorithms. The ones I have to know are:

Sorting:

Insertion sort

Merge sort

Selection sort

Searching:

Binary search(IDK how to write these)

Shuffling:

I genuinely have no idea what this is public static void shuffle(ArrayList<Integer> list) { int index; for(int i=0; i<list.size(); i++) { index = (int)(Math.random()*list.size()); if(index!=i) { int temp = list.get(index); list.set(index, list.get(i)); list.set(i, temp); } } }
Read Entire Article