can write you own function to convert to uppercase using the char unicode value
 
eg. 1. get unicode value for lowercase letter , which is value int b
      2. check to see if b is between 97 and 122 (a= 97, z = 122)
 


--- On Wed, 9/9/09, Zhao Lin <[email protected]> wrote:


From: Zhao Lin <[email protected]>
Subject: [java programming] Lab-1022
To: [email protected]
Date: Wednesday, September 9, 2009, 9:07 AM







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
-~----------~----~----~----~------~----~------~--~---

Reply via email to