Learn a few different ways to get the last n characters from a String.
Also find me here:
Baeldung Author
Daniel McNally
Daniel is a passionate tech lead specializing in Java and Spring Boot. He holds a Master's degree in Software Development, a PGCert in Applied Cyber Security, and various AWS certifications.
Here's what I've written (so far):
Baeldung on Java
- All
- Java String (2)
- Java Streams (1)
- Java Numbers (1)
- Java Map (1)
- Java Collections (1)
Collect Stream of entrySet() to a LinkedHashMap
Filed under Java Map, Java Streams
Explore various ways to collect a stream of Map.Entry objects into a LinkedHashMap.
Convert String to long or Long in Java
Filed under Java Numbers, Java String
In this tutorial, we learn how to convert a String to a long primitive or Long object.
Return First Non-null Value in Java
Filed under Java Collections
Learn how to retrieve the first non-null value in a collection of item, or sequence of method calls.