Learn how hashCode() works and how to implement it correctly.
Search Results for: sorting
The Dining Philosophers Problem in Java
Discover the Dining Philosophers Problem and a solution in Java.
Java Web Weekly, Issue 177
An eventful week after the Jigsaw vote, lots of new stuff on the horizon and of course my releases of the new Certification classes.
Guide to the ConcurrentSkipListMap
A quick introduction to Java’s ConcurrentSkipListMap, with an example of the typical usage
Guide to Java 8 Comparator.comparing()
A practical guide to the static functions and instance methods of the Comparable interface that were introduced in Java 8.
Finding Max/Min of a List or Collection
A quick and practical guide to getting maximum/minimum element from a list or a collection.
Guide to Guava’s Ordering
A guide to Guava’s Ordering class, with typical usage examples.
A Guide to TreeMap in Java
A quick and practical guide to TreeMap in Java.
Thymeleaf: Custom Layout Dialect
A quick and practical guide to Custom Layout Dialects in Thymeleaf with Spring
Pagination with Spring REST and AngularJS table
An extensive look at how to implement a simple API with pagination with Spring and how to consume it with AngularJS and UI Grid.
JPA Criteria Queries
Quick and practical guide to using Criteria Queries mechanism in Hibernate
Java Web Weekly, Issue 134
The Java “State of the Union”, a look at JUnit 5 and some cool notes on reactive programming – quite an interesting week.
Intro to Jedis – the Java Redis Client Library
An introduction to Jedis, a client library in Java for Redis – the popular in-memory data structure store that can persist on disk as well.
Introduction to Spring Data REST
This article will explain the basics of Spring Data REST and show how to use it to build a simple REST API.
Introduction to JsonPath
1. Overview One of the advantages of XML is the availability of processing — including XPath — which is defined as a W3C standard. For JSON, a similar tool called JSONPath has emerged. This tutorial will give an introduction to Jayway JsonPath, a Java implementation of the JSONPath specification. It describes setup, syntax, common APIs […]
Introduction to Spring Data Elasticsearch
In this article we explore the basics of Spring Data Elasticsearch and we show how to index, search, and query data with the framework.
Spring REST API + OAuth2 + Angular
Learn how to set up OAuth2 for a Spring REST API using Spring Security 5 and how to consume that from an Angular client.
Third Round of Improvements to the Reddit Application
Improving the Reddit app in the case study with: better tables, email notifications, simple voting rules and extra validation.
Getting Started with Mockito @Mock, @Spy, @Captor and @InjectMocks
How to use annotations in Mockito – @Mock, @Spy, @Captor and @InjectMocks and the MockitoJUnitRunner to enable them.
The Baeldung Weekly Review 17
An solid week for both Java and Spring, as well as very good article (and followup) on building a Hypermedia service from the well known FizzBuzz interview problem.