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

    The String class has a set of built-in methods that you can use on strings. Returns the number of Unicode values found in a string. Compares two strings. Returns true if the strings are equal, and false if not. Java Strings Tutorial.

  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 string with all characters translated to uppercase or to lowercase.

  3. Java Strings - GeeksforGeeks

    Apr 8, 2025 · Java provides a robust and flexible API for handling strings, allowing for various operations such as concatenation, comparison, and manipulation. Example: String name = “Geeks”; String num = “1234” Program: Ways of Creating a Java String. There are two ways to create a string in Java: Syntax:

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

    Oct 25, 2019 · Java String class has a lot of methods. There are many methods to get the characters of the string object. There are many methods to split the string into an array or to create substrings. Since String is immutable, the original string remains unchanged.

  5. Java String Methods Cheat Sheet - Java Guides

    Java's String class provides a comprehensive set of methods for string manipulation, comparison, searching, and more. Understanding these methods is crucial for effective string handling in Java applications.

  6. Java String (With Examples) - Programiz

    Java provides various string methods to perform different operations on strings. We will look into some of the commonly used string operations. 1. Get the Length of a String. To find the length of a string, we use the length() method. For example, public static void main(String[] args) { // create a string . String greet = "Hello! World";

  7. Java String Methods with Examples - Java Guides

    The String class in Java provides a wide range of methods for string manipulation. By understanding its methods, use cases, and best practices, you can effectively utilize the String class in your Java applications.

  8. Java All String Class Methods with Examples - Java Guides

    Strings are immutable in Java, meaning once a String object is created, its value cannot be changed. Instead, every modification results in the creation of a new String object. The java.lang.String class is used to create and manipulate strings, offering a wide array of …

  9. String (Java SE 17 & JDK 17) - Oracle

    Here are some more examples of how strings can be used: 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 string with all characters translated to uppercase or to lowercase.

  10. 10 Important String Methods In Java You Must Know - Crio Blog

    Oct 8, 2022 · How and why is it useful to use String functions in Java programming? The String class contains over 60 methods that serve as basic utility methods to make the life of a developer dealing with strings smoother.