If you are using the InputStream OutputSream, then the the read is
reading the value of each character as an integer.
Therefore, to change the lower case letters all you need to do is the
following in your read methods:
int b = in.read();
if(b >= 97 && b <= 122)
b -= 32;
if you want to verify to System.out.println
that it changed it properly, you can do something like this:
String myString = "";
int b = in.read();
if(b >= 97 && b <= 122){
b -= 32;
myString += b;
}
System.out.println(myString);
On Oct 30, 6:51 pm, "Khalid El Khalloufi" <[EMAIL PROTECTED]>
wrote:
> using an arraylist (Animal) numFile is a string "111X" how to verify if this
> numFile (for a new file, trying to add) doesnot exist. if exist display an
> error message (ex. file already exist)
>
> thank you for your help
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---