How to Replace a Period Using String With Java?

Answer The "String" class in Java lets you manipulate a string of characters contained in a Java variable. The "Replace" string function lets you remove any character from a string, including the period c... Read More »

Top Q&A For: How to Replace a Period Using String With Java

How to Split String in Java?

Before Java 1.4, StringTokenizer was used to split String in Java. After JDK 1.4, the use of StringTokenizer is discouraged, and instead the String.split(...) method or use of java.util.regex packa... Read More »

How to Get the Length of a String in Java?

Java treats Strings as objects not as simple data types. This article will show you how to get the length of a string in Java.

How to Trim a String in Java?

String class provides a method to trim() which returns a copy of the string with leading and trailing white space removed, or the string if it has no leading or trailing white space.

How to Convert a String to UTF-8 With Java?

In the Java programming language, String objects encode the characters they contain using the Unicode standard. However, in many common applications, character strings need to get converted to the ... Read More »