0
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?

Sam Estep
  • 12,974
  • 2
  • 37
  • 75
Ben
  • 3
  • 1
  • 4

0 Answers0