Java: Convert all the characters in a string to lowercase
Write a Java program to convert all characters in a string to lowercase.
Visual Presentation:
Sample Solution:
Java Code:
Sample Output:
Original String: The Quick BroWn FoX! String in lowercase: the quick brown fox!
Flowchart:
Java Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a Java program to create a character array containing the contents of a string.
Next: Write a Java program to convert all the characters in a string to uppercase.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics