Hi Everyone,
Create the class called ChangeToUpperCaseInputStream and extends
FilterInputStream and also create the class ChangeToUpperCaseOutputStream and
also extends FilterOutputStream. and then after that Override the read method
in any of the classes u have created above with the following lines of code
Code
public int read() throws IOException {
int result = super.read();
return (result == -1)? result : Character.toUpperCase((char)result);
}
after this write ur fileinputoutputstream class with the main method and run
the program again.
i hope this information was helpful.
________________________________
From: Caleb Josue Ruiz Torres <[email protected]>
To: Free Java Programming Online Training Course By Sang Shin
<[email protected]>
Sent: Mon, November 2, 2009 7:25:39 AM
Subject: [java programming] Lab 1022 Java Stream IO
Hello There All!
i can't figure out how can i solve the homework in the hands-on-labs 1022 java
Sream IO with only FilterInputStream and FilterOuputStream.
I've Been Trying all the day, i've Done! lol
is the only homework that i need to complete this course.
I'm getting crazy with this homework, so please give some guidelines.
thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---