Hi,
use:
String myString = "lowercase content";
String anotherString = myString.toUpperCase();
And please, next time try to invest some effort in looking up such
things in the Java documentation. This question would have easily be
answered by scanning the doc of the class java.lang.String for an
appropriate method.
Matthias Pfisterer
Van Sy wrote:
>
> Hi,
>
> I'm new to Java and would like some advice on how to convert a string to
> upper case.
> Thanks in advance,
>
> Van Sy
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]