How to convert string to lower case in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {
    
    public static void main(String[] args) {
  
        String s = "JAVA PHP C C++ C#";

        String sLower = s.toLowerCase();

        System.out.println(sLower);
    }    
}
   
/*
   
run:
   
java php c c++ c#
   
*/

 



answered Oct 28, 2016 by avibootz

Related questions

1 answer 264 views
1 answer 156 views
1 answer 274 views
274 views asked Sep 25, 2020 by avibootz
1 answer 186 views
1 answer 176 views
176 views asked Aug 21, 2020 by avibootz
...