Tuesday 15, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Sunday, 3 May 2015

How to convert a String to Lower case

Following example shows how to convert a string to lower case.

Sample Program

package com.javatutorialcorner.javastring;

public class ToLowerCase {

public static void main(String[] args) {
String input = "Java tutorials corner contains tutorials for Java programmers day to day needs tutorials like Java, Spring, Hibernate, String, JSON, Jackson, GSON, XML parsing, Web Service, SOAP Web Service, RESTful Web Service";
String lowerCase = input.toLowerCase();

System.out.println("Input String : " + input);
System.out.println("Lower Case case String : " + lowerCase);

}

}


Output


The above code will produce the following output



Input String : Java tutorials corner contains tutorials for Java programmers day to day needs tutorials like Java, Spring, Hibernate, String, JSON, Jackson, GSON, XML parsing, Web Service, SOAP Web Service, RESTful Web Service
Lower Case case String : java tutorials corner contains tutorials for java programmers day to day needs tutorials like java, spring, hibernate, string, json, jackson, gson, xml parsing, web service, soap web service, restful web service

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • Hibernate Introduction Introduction Hibernate is a high-performance Object/Relational persistence and query service.The term Object/Relational mapping refers to the technique of mapping data and object model representation to relational data mod… Read More
  • iText 5 - Adding annotations to a table cellTo create PDF file we need iText 5 jar. Download iText Jars from iText Website or Maven Repository Maven Dependency com.itextpdf itextpdf 5.5.11 LinkInTableCell.java package com.javatutorialcorner.itextpdf; import… Read More
  • Object-Oriented Programming Concepts Object-Oriented Programming (OOPs) Concepts Object Class Inheritance Polymorphism Abstraction Encapsulation Object Any entity that has state and behavior is known as an object. For example: table, keyboard, car etc. It … Read More
  • Hibernate Architecture Overview The diagram below provides a high-level view of the Hibernate architecture: Minimal architecture The "minimal" architecture has the application manage its own JDBC connections and provide those connections to Hibernate;… Read More
  • Lambda expressions are allowed only at source level 1.8 or above The "source compatibility" part of the Java Compiler dialog has to be 1.8. Otherwise even though you're allowed to use the library features of Java 1.8, you won't be able to use the language features. It's not just lambdas -… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: How to convert a String to Lower case Rating: 5 Reviewed By: eHowToNow