- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java program to convert a string to lowercase and uppercase.
Example
import java.lang.*; public class StringDemo { public static void main(String[] args) { // converts all upper case letters in to lower case letters String str1 = "SELF LEARNING CENTER"; System.out.println("string value = " + str1.toLowerCase()); str1 = "TUTORIALS POINT"; System.out.println("string value = " + str1.toLowerCase()); // converts all lower case letters in to upper case letters String str2 = "This is TutorialsPoint"; System.out.println("string value = " + str2.toUpperCase()); str2 = "www.tutorialspoint.com"; System.out.println("string value = " + str2.toUpperCase()); } }
Output
string value = self learning center string value = tutorials point string value = THIS IS TUTORIALSPOINT string value = WWW.TUTORIALSPOINT.COM
- Related Articles
- Convert string to lowercase or uppercase in Arduino
- Write a C program to convert uppercase to lowercase letters without using string convert function
- How to convert lowercase letters in string to uppercase in Python?
- Golang Program to convert Uppercase to Lowercase characters, using binary operator.
- How to convert all uppercase letters in string to lowercase in Python?
- Java program to find the percentage of uppercase, lowercase, digits and special characters in a String
- Swift Program to Convert a String to Uppercase
- Swift Program to Convert a String to Lowercase
- Making a Java String All Uppercase or All Lowercase.
- Golang Program to convert a string into Uppercase
- Golang Program to convert a string into lowercase
- Replacing upperCase and LowerCase in a string - JavaScript
- C Program for LowerCase to UpperCase and vice-versa
- Convert All Lowercase Text of a File into Uppercase in Java?
- Java Program to Map String list to lowercase and sort

Advertisements