A quick and practical guide to finding n most frequent elements in a Java array.
Baeldung Author
Nam Tien Vu
I have extensive experience in the Java ecosystem and have been working in the field for many years. In my free time, I enjoy indulging my passion for cats and exploring the philosophies of Confucianism and Buddhism.
Here's what I've written (so far):
Baeldung on Java
- All
- Java (7)
- Algorithms (4)
- Security (2)
- Networking (1)
- Java Web (1)
- Jackson (1)
- HTTP Client-Side (1)
- Guava (1)
Validating IPv4 Address in Java
Filed under Java Web
We may wish to validate IP addresses from our settings files or other inputs. We look at a few ways to do this using libraries and plain Java code.
Java Program to Print Pascal’s Triangle
Filed under Algorithms
A quick and practical guide to implementing Pascal’s Triangle in Java.
Java Program to Calculate the Standard Deviation
Filed under Algorithms, Java
Learn how to calculate the standard deviation in Java.
Generate the MD5 Checksum for a File in Java
A quick and practical guide to generating the MD5 checksum for files in Java.
Custom HTTP Header With the Java HttpClient
Filed under HTTP Client-Side, Networking
A quick and practical guide to adding custom headers to HTTP requests with Java’s HttpClient.
Get the ASCII Value of a Character in Java
Filed under Java
A quick and practical guide to getting ASCII value of a char in Java.
Create a Simple “Rock-Paper-Scissors” Game in Java
Filed under Algorithms
A quick example of the Rock-Paper-Scissors implementation in Java.
Convert Between Byte Array and UUID in Java
Filed under Java
A quick and practical conversion guide between byte arrays and UUID.
Computing an X509 Certificate’s Thumbprint in Java
Filed under Security
A quick and practical guide to computing an X509 certificate’s thumbprint in Java.
Use Dot “.” as the Decimal Separator in Java
Filed under Java
A quick and practical guide to using dot as decimal separator in Java.
Simulate touch Command in Java
Filed under Java
A quick and practical guide to mimicking “touch” behavior in Java.
Compare Strings While Ignoring Whitespace in Java
Filed under Java
Learn different ways to compare strings while ignoring whitespace in Java.
Deserialize Snake Case to Camel Case With Jackson
Filed under Jackson
By default, Jackson expects the field names in JSON to match the ones in our Java POJOs. As Java usually uses camel case field naming by convention, this makes it harder to deserialize snake case JSON. We look at some ways to configure our code so that we can load JSON with other field naming conventions.
Convert an Object to a Byte Array in Java
Filed under Java
A quick and practical guide to converting objects into byte arrays in Java.