List<String> flowers = new ArrayList<String>();
My for loop currently looks like this...
for (int i = 0; i < flowers.size(); i++) {
...
}
OR should I change this to look like the code given below
int size = flowers.size();
for (int i = 0; i < size; i++) {
...
}
Which is more performant (assuming I have a large array of flowers), I am guessing it should be the latter.