Proper ArrayList to String[][] typecasting

Removed the stopgap for loop and replaced with ArrayList's built-in
method