The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Spring Courses ▼▲
    • REST with Spring Boot

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security

      THE unique Spring Security education if you’re working with Java today

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

    • View All Spring Courses

  • Java Courses ▼▲
    • Learn JUnit

      Master the most popular Java testing framework.

    • Learn Maven

      Simplify Your Build with Apache Maven

    • Learn Hibernate JPA

      Master persistence with the Java specification and Hibernate implementation

    • Learn Mockito

      Enhance your unit tests through practical mocking

    • View All Courses

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Category upJava
Image

Java String

In the following list, you’ll find examples of common operations that you can perform on Java Strings.

  • Regex (69)
  • Java Characters (53)
  • String Conversions (45)
  • Apache Commons Lang (37)
  • StringBuilder (26)
  • Java String Basics (15)
  • Guava (12)
  • JMH (10)
  • toString (8)
  • Java Null (7)
  • Sorting (7)

>> Replacing Single Quote with \’ in Java String

>> Get the Indexes of Regex Pattern Matches in Java

>> Extract Text Between Square Brackets

>> Convert an ArrayList of String to a String Array in Java

>> Converting String or String Array to Map in Java

>> Escape HTML Symbols in Java

>> Performance Comparison Between Different Java String Concatenation Methods

>> Check if a String Has All Unique Characters in Java

>> Check if a String Contains Non-Alphanumeric Characters

>> Split a String Into Digit and Non-Digit Substrings

>> Check if a String Is All Uppercase or Lowercase in Java

>> Sort Date Strings in Java

>> How to Take Input as String With Spaces in Java Using Scanner?

>> Convert String to Int Using Encapsulation

>> Object.toString() vs String.valueOf()

>> Java PrintStream to String

>> Regular Expression: \z vs \Z Anchors in Java

>> Difference Between null and Empty String in Java

>> Find the Longest Word in a Given String in Java

>> Remove Punctuation From a String in Java

  • «
  • ← Previous
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • Next →
  • »
Course – LSSO – NPI EA (tag = OAuth)
LSSO Course Banner
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • Login Course Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • Spring Framework Introduction
  • All About String in Java
  • Security with Spring

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • ImageBaeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo
Advertisement