About 34,400,000 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, …

  2. How can I map a String to a function in Java? - Stack Overflow

    Jul 31, 2012 · There aren't any first-class standalone functions, but you can do what you want with an interface. Create an interface that represents your function. For example, you might have …

  3. Java Strings - GeeksforGeeks

    May 6, 2025 · Java provides a robust and flexible API for handling strings, allowing for various operations such as concatenation, comparison, and manipulation. Example: String name = …

  4. JavaString Class and Methods with examples - BeginnersBook

    Oct 25, 2022 · In this tutorial we will learn about String class and String methods with examples. There are two ways to create a String in Java. 1. String literal. A string literal is a sequence of …

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

    Jun 20, 2023 · A number of methods provided in Java to perform operations in Strings are called String functions. The methods are compare(), concat(), equals(), split(), length(), replace(), …

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

    String concatenation is implemented through the StringBuilder (or StringBuffer) class and its append method. String conversions are implemented through the method toString, defined by …

  7. 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 …

  8. Java Strings - W3Schools

    Strings are used for storing text. A String variable contains a collection of characters surrounded by double quotes: A String in Java is actually an object, which contain methods that can …

  9. function to return a string in java - Stack Overflow

    Jan 25, 2012 · In Java, a String is a reference to heap-allocated storage. Returning "ans" only returns the reference so there is no need for stack-allocated storage. In fact, there is no way in …

  10. 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 …