About 155,000 results
Open links in new tab
  1. 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 …

  2. Get Substring from String in Java - Baeldung

    Jul 21, 2024 · In this quick tutorial, we’ll focus on the substring functionality of Strings in Java. We’ll mostly use the methods from the String class and few from Apache Commons’ …

  3. Java String substring() Method - W3Schools

    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.

  4. Java Exercises: String exercises - w3resource

    Mar 17, 2025 · This resource offers a total of 560 Java String problems for practice. It includes 112 main exercises, each accompanied by solutions, detailed explanations, and four related …

  5. Java String substring() - Programiz

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

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

    Feb 20, 2025 · In this tutorial, we’ll cover its syntax, use cases, and potential pitfalls while providing practical examples and solutions to common errors. Parameters: beginIndex - the …

  7. Java String substring() with Examples - HowToDoInJava

    The String.substring() in Java returns a new String that is a substring of the given string that begins from startIndex to an optional endIndex. These indices determine the substring position …

  8. Java Substring - HackerRank

    Given a string, , and two indices, and , print a substring consisting of all characters in the inclusive range from to . You'll find the String class' substring method helpful in completing this challenge.

  9. Substring in Java with Examples - First Code School

    Jan 10, 2024 · In the dynamic landscape of Java programming, mastering the intricacies of string manipulation is essential. A fundamental element within this domain is the concept of …

  10. Subsequence and Substring - GeeksforGeeks

    May 16, 2025 · Easy Problems on Substring: Number of substrings of one string present in other ; Print all substring of a number without any conversion ; Substring Reverse Pattern ; Find the …