Java: How to Format a Double With DecimalFormat
When you don't need too much precision.
Java: How to Format a Double Using String.format()
Make it look the way it should.
Spring Boot: How to Upload Files With a REST API
It's just a glorified request body.
JUnit and Mockito: Why Your Mocks Aren't Injecting
One theory, anyway.
JUnit: Test Exception Conditions With assertThrows()
Make sure things go wrong the way they're supposed to go wrong.
Spring Boot: How to Handle REST API Errors
Take the time to deliver a user-friendly error response.
So What's the Difference Between ? and Object in Java Generics?
They're not the same.
Java Streams: Debug Your Code With peek()
Get a sneak peek that will help you diagnose your problems.
Java: Pare Down That List With removeIf()
It's pretty easy to trim a List object.
MongoDB: How to Retrieve the Last N Documents From a Collection
Looking to get the last few? I feel ya.
Terms of Service