Rotate Arrays in Java

Learn how to rotate an array by k rotations with brute force and more complex algorithms like reverse or cyclic replacements.