
In today's class, we looked at a variety of approaches to solving the problem of returning
multiple pieces of information from one method to another.

These various approaches can't easily be written into a single program so I've instead written
different versions of the program for each of the approaches we looked at. 

The approaches are numbered in the order that we addressed them:


version 0 : the original problem - doesn't compile since we don't know what to return


version 1 : an attempt to pass the information through parameters. (This won't necessarily
            work in Java)


version 2 : (the first successful attempt) uses class-level variables and side effects
            to pass the information. Although this works, there are inherent problems
            with doing this in larger programs


version 3 : an alternative to version 1. This works for this simple example but not
	    in general. However, this demonstrates that for some _object_ types, passing
            information back up through parameters can work in Java.


version 4 : (the second general success) creates a simple record type of the data to
            be returned. This approach was common through the 1970's but is considered
            to be lacking when programs become larger in size and complexity


version 5 : The first version of a class (or object-based) approach. This version is
            the gist of the class approach. We will spend most of next week expanding
            on this basic idea.