About 293,000 results
Open links in new tab
  1. Java String Reference - W3Schools

    Searches a string for a specified value, and returns a new string where the specified values are replaced: String: replaceAll() Replaces each substring of this string that matches the given …

  2. String (Java Platform SE 8 ) - Oracle Help Center

    The class String includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, for extracting substrings, and for creating a copy of a …

  3. String Class in Java - GeeksforGeeks

    May 1, 2025 · In this article, we are going to learn about the String class in Java. Example of String Class in Java: Explanation: The above program creates a string using a literal and prints …

  4. Java 8 - The String Class

    In our first lesson of this section we learn all about the predefined String object. We look at string immutability, creation and efficiency before finishing the lesson by looking at some of the …

  5. Java String Methods - Programiz

    In this reference page, you will find all the string methods available in Java. For example, if you need to find the length of a string, use the length () method. Splits the string at the specified …

  6. Java String class Functions - Studytonight

    Java String class functions. The methods specified below are some of the most commonly used methods of the String class in Java. We will learn about each method with help of small code …

  7. String Functions In Java | Guide To Java String With Examples

    Jun 20, 2023 · Strings in Java are constant and created using a literal or keyword. String literal makes Java memory efficient, and the keyword creates a Java string in normal memory. The …

  8. Java String Methods - 27 String Functions You Must Know

    Oct 25, 2019 · Java String Methods List. A brief introduction to the various methods present in the Java String class. Java String functions examples.

  9. Java String predefine - Stack Overflow

    Apr 14, 2014 · There are two ways you can acheive this, either use a enum as constructor parameter. The enum itself contains only the allowed values, which is what I would do, keep …

  10. Java Strings Cheat Sheet - Java Concept Of The Day

    There are two ways to create string objects in Java. 1) Using String Literals. String s1 = “ABC”; String s2 = “123”; 2) Using new Operator. String s1 = new String (“ABC”); String s2 = new …

  11. Some results have been removed