Re: Yet another OO question...
"ChrisW" <c.c.wood@gmail.com> wrote in message
news:1174994188.837919.300890@y66g2000hsf.googlegroups.com...
Thanks for the replies... one of the problems is that I don't have a
seasoned developer to help me! I'll lay out some pseudocode, and if
anyone can tell me if it's logical to split it into different OO bits
I'd be grateful :)
I'm using the JEcelApi package (which I think i probably got to work
more by luck than judgement!) to read in a sheet in an Excel file, the
sheet has a list of venues as the rows, and facilities as the columns
- if a venue has a particular facility then a "y" is in the cell,
otherwise a "n" is. However, some facilities are only available to
over 18s, so the "y" is preceded by an 18 (to produce "18y" - as just
a string). My program can go through and pick out all the facilites
at all the venues for which you need to be 18:
[Pseudo code snipped. It does what you'd expect: Scans through a 2D array,
and uses String.startsWith("18").]
I really hope that this makes sense to people. What I'm basically
doing is going through the venues, and finding out which facilities
they have and which they are only making available to people over 18.
I'm storing that information in an array of strings, so that by the
time I get to the end of the current row, I can print out which
facilities for this venue are only used by over 18s.
I think this solution is more naturally expressed in procedural terms
than OO terms.
- Oliver