Let's use a for-each loop for this

~~~
for (VectorEntry entry: ratings) {
}
~~~