Hi.
I try again,
int b = in.read();
if (b != -1) {
char c = (char)b;
System.out.print(c);
}
This code write out to console. I add two line to make upper case in this but
error message say 'Accessing method toUpperCase'.
int b = in.read();
if (b != -1) {
char c = (char)b;
Character letter1 = new Character (c);
Character letter2 = letter1.toUpperCase(c);
System.out.print(c);
}
FilterInputStream have no method to read characters but only byte. I thinking
to use subclass BufferedInputStream and convert to string? I wait for you.
Please help me. I stuck on this for week now. Look over internet. Still
confuse. Thank you for your consideration.
Zhao
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---