The
main() method
should have at most two or three lines, often just one. I would create a utility class (what I would call a driver class), put a one-line
main() in it, calling a method that calls the other methods in other classes. Others would argue that
you should have a class with only
main() in it that calls a method in a driver class. It depends on the size and reusability of the project.
Either:
or: