Simple Solution
  • Java
  • Spring
  • Spring Boot
  • Tutorials
  • Tags
Uncapitalize first character of all words in a String in Java using Apache Commons Text
Uncapitalize first character of all words in a String in Java using Apache Commons Text

In this article we will explore the WordUtils.uncapitalize() method of Apache Commons Text library to uncapitalize a String. With Java code example we will learn how to use the WordUtils.uncapitalize() method to convert the first character of all words in a String to lowercase character.

Swap Lowercase and Uppercase of a String in Java using Apache Commons Text
Swap Lowercase and Uppercase of a String in Java using Apache Commons Text

In this article we are going to learn how to swap the case of a String in Java application. We provide a Java code example to show how to use WordUtils.swapCase() method of Apache Commons Text library to swap the case of each character of a given String.

Java extracts initial characters from each word in a String using Apache Commons Text
Java extracts initial characters from each word in a String using Apache Commons Text

In this post we learn how to use WordUtils class of Apache Commons Text library to extract initial characters from all words of a String in Java. We will show the Java code example that uses WordUtils.initials() method to extract initial letters of people names.

Java Checks if a String contains all words in array using Apache Commons Text
Java Checks if a String contains all words in array using Apache Commons Text

In this article we show how to check if a String contains all words in an array in Java. By using WordUtils utility class of Apache Commons Text library you can check if the String contains all words in the given array using containsAllWords() method.

Wrap a line of text into multiple lines in Java using Apache Commons Text
Wrap a line of text into multiple lines in Java using Apache Commons Text

In this post we learn how to wrap a String in Java using WordUtils utility class of Apache Commons Text library. By using WordUtils.wrap() method we can break a long line of text into multiple lines with a given input text and the length. The output String will be wrapped words and separated by system line separator character or by your custom provided separator.

Capitalize First Letter of each Word of String in Java using Apache Commons Text
Capitalize First Letter of each Word of String in Java using Apache Commons Text

In this article we show how to use WordUtils utility class of Apache Commons Text library to capitalize the first character of each word in a Java String. We will provide Java code examples to show how to use capitalize() and capitalizeFully() methods of the library’s WordUtils utility class.

Copyright © 2019 SimpleSolution.dev. All Rights Reserved.