Explain Codes LogoExplain Codes Logo

Java

Make a negative number positive

java
math-abs
biginteger
ternary-operator

Convert list to array in Java

java
toarray
concurrency
autoboxing

How to convert a byte array to a hex string in Java?

java
byte-array
hex-string
performance

How do I make the method return type generic?

java
generics
type-safety
method-overloading

How do I make a delay in Java?

java
scheduledexecutorservice
lambda
thread-sleep

How to randomize two ArrayLists in the same fashion?

java
randomization
data-integrity
fisher-yates

Creation timestamp and last update timestamp with Hibernate and MySQL

java
localdatetime
hibernate
timestamps

What does 'synchronized' mean?

java
synchronized
thread-safety
java-memory-model

How to dockerize a maven project? and how many ways to accomplish it?

java
dockerization
maven
kubernetes

Java Serializable Object to Byte Array

java
serialization
exception-handling
objectmapper

How to parse JSON in Java

java
json-parsing
jackson
error-handling

What's the difference between map() and flatMap() methods in Java 8?

java
flatmap
map
streams

How can I turn a List of Lists into a List in Java 8?

java
list-flattening
streams
functional-programming

File to byte[] in Java

java
file-io
memory-management
apache-commons

How do I remove repeated elements from ArrayList?

java
streams
collections
deduplication

How to decompile a whole Jar file?

java
decompilation
tools
automation

Maven is not working in Java 8 when Javadoc tags are incomplete

java
javadoc
maven
doclint

How to find an available port?

java
port-allocation
exception-handling
security

Java equivalent to #region in C#

java
code-folding
ide-shortcuts
readability
code-folding
ide-shortcuts
readability

How to tell Jackson to ignore a field during serialization if its value is null?

java
json-serialization
objectmapper
custom-serializer