About 235,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, 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. Common String Operations in Java - Baeldung

    Jan 8, 2024 · In this tutorial, we’ll provide a quick cheat sheet of common String operations. Additionally, we’ll shed some light on the differences between equals and “==” and between StringUtils#isBlank and # isEmpty.

  4. Java Strings - W3Schools

    A String in Java is actually an object, which contain methods that can perform certain operations on strings. For example, the length of a string can be found with the length() method: Example

  5. Java Strings - GeeksforGeeks

    Apr 8, 2025 · In Java, a String is the type of object that can store a sequence of characters enclosed by double quotes, and every character is stored in 16 bits, i.e., using UTF 16-bit encoding. A string acts the same as an array of characters.

  6. Java Strings - Tpoint Tech

    In Java, string is basically an object that represents sequence of char values. An array of characters works as a string in Java. For example: The java.lang.String class implements Serializable, Comparable and CharSequence interfaces. The CharSequence interface is used to represent the sequence of characters.

  7. Basic String Operations with Implementation - GeeksforGeeks

    Oct 7, 2024 · In this post, we will look into some of the basic String operations such as: Accessing characters by index in a string. Inserting Character/String into an String. Concatenating strings (combining multiple strings into one). Let us consider the basic String operations one by one. Accessing characters by index in a string.

  8. 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";

  9. Special String Operations in Java - Java Guides

    Understanding string literals, concatenation, and the toString() method is fundamental for working with strings effectively in Java. This tutorial has covered these basic string operations with examples, providing a solid foundation for further exploration of string handling in Java.

  10. Java String: A Guide to String Basics, Methods, Immutability ...

    Java's String class, part of the java.lang package provides various methods to perform different operations on strings, such as trimming, replacing, converting, comparing, and more. Let's explore the important methods of the String class in Java and illustrates how they can be used.

Refresh