myClass a = new myClass();
for (Object o : a.getList()) system.out.println("hi");
Should I first make a variable to hold a.getList(), or is the above code okay?
myClass a = new myClass();
for (Object o : a.getList()) system.out.println("hi");
Should I first make a variable to hold a.getList(), or is the above code okay?