link and link seems to be a decent link for doing the comparisons. I can't say for certain that there are any speed differences. It just looks like 2 different ways to format the data.

Not sure if this would be faster but instead of using a loop to place everything into an array, store everything in a single string using a unique deliminator. Then you can use String.split(). In my mind, using a hardcoded method for this could be faster than a loop.