About 18,700 results
Open links in new tab
  1. Java String substring () Method - W3Schools

    Definition and Usage The substring() method returns a substring from the string. If the end argument is not specified then the substring will end at the end of the string.

  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. Java String substring () Method - GeeksforGeeks

    Apr 11, 2025 · In Java, the substring () method of the String class returns a substring from the given string. This method is most useful when you deal with text manipulation, parsing, or data …

  4. Java String substring () - Programiz

    In this tutorial, you will learn about the Java String substring () method with the help of examples.

  5. Java String.substring () - Baeldung

    Apr 11, 2025 · A quick example and explanation of the substring () API of the standard String class in Java.

  6. Master Java Substring Method: Examples, Syntax, and Use Cases

    Feb 19, 2025 · Learn how to use the Java substring method. Explore syntax, practical examples, and common errors to handle substrings effectively.

  7. Java String substring () method - Tpoint Tech

    Mar 24, 2025 · The substring method in Java returns a new string that represents the specified portion of the original string. It does not modify the original string but instead creates a new …

  8. Java String substring () Method: A Complete Guide - TheLinuxCode

    May 20, 2025 · The substring() method is a built-in function of Java‘s String class that allows you to extract a portion of a string based on specified indices. Think of it as using scissors to cut …

  9. Java String substring () with Examples - HowToDoInJava

    Learn to find the substring of a string between the begin and end indices, and valid values for both indices with examples.

  10. Java - String substring () Method - Online Tutorials Library

    The Java String substring () method is used to retrieve a substring of a String object. The substring starts with the character at the given index and continues to the end of the current …