This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes helper class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "helper class" Watch "helper class" New topic

helper class

Morgan Roth

Joined: Oct 31, 2002
Posts: 17
I have learned a lot of java, but I realized I miss the concept of the 'helper class'. What is the fundamental reason for a helper class. I feel like I'm missing something. Thanks in advance.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32312

A helper class is sometimes called a utility class. This is a class that has methods that have meaning on their own and make some other task easier. Suppose, my job is to write a program to read in a file and do some processing. I would write/call a helper class to read in the file. This allows me to focus on the processing logic in the main class.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: helper class
It's not a secret anymore!