Java Snippet - Arrays