quite lost with this topic because I've read a thousand different opinions.
given the code:
for (MyClass myObject : myList<MyClass>) {
String name = myObject.getName();
long time = myObject.getTime();
doWhateverWith(name, time);
}
Should I put declarations outside? Nowadays, in which situations would it make a difference?
Thanks!