toUpperCase

The String method that returns a new string with every letter converted to capitals.

In more detail

Strings are immutable, so the original is unchanged. The course uses it as a simple transformation in streams, Optional and CompletableFuture examples, which is why their output appears in capitals.

Example

"ready".toUpperCase()  // "READY"

Related terms

Taught in

References

Certification courses