Why does a method that uses an ArrayList but returns a primitive type require the method name to include "static"?
What is the reason behind "non-static method cannot be referenced from a static context"?