On Apr 6, 9:48 pm, "Roger O'Dell" <[email protected]> wrote:
> I have gone over all the labs, and I am now working on the homework. I am
> completely stumped as to how this needs to be done. I assume what they are
> asking for is to have the file read in and converted to upper case before
> running thru the remainder of the program. If this is true, then I am
> confused as to going about that. I have both the classes created, (per the
> homework request) but no data in them. I have created the new instances of
> them in the class with Main method, and that is as far as I have gotten. My
> thoughts are that I have to add a line to the Checksum interface, expand on
> it in Adler32 and then put the needed info in the Upperclass input stream
> and output stream. I think I am on the right track, but I want to be sure
> before I waste hours on this. Any ideas or sample code would be helpful.
Actually you don't need the Checksum interface, nor the Adler32.
You just need to pass to both ChangeToUpperCaseInput/Output/Stream a
FileInput/OutputStream based on the farrago.txt and its counterpart
once it is all in uppercase.
In the Change...Stream class, you use variant of the read/write
functions to convert to uppercase.
In the main you just read the data and print it.
>
> Thanks,
>
> Roger O'Dell
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---