+ 12
How can I convert string outputs to uppercase in Java?
I newly started programming and I started working with java .
3 Antworten
+ 7
You can use toUpperCase method of String. It *returns* a string converted to uppercase letters.
Declare a string.
String text="This is cool";
System.out.println(text.toUpperCase());
It'll print string in uppercase .remember original string won't change.
+ 4
String type as Word? Use uppercase function