Convert char to uppercase java

You can use Charater class’s touppercase method to convert char to uppercase in java.


Method signature


Parameters

ch is primitive character type.


Return type

return type is char. If char is already uppercase then it will return same.

When you run above program, you will get below output:

A
Y
F
U

That’s all about how to convert char to uppercase in java.

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *