Explain Codes LogoExplain Codes Logo

Java

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

Convert integer into byte array (Java)

java
bytebuffer
endianness
bitwise-manipulation

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

Why does JPA have a @Transient annotation?

java
transient
persistence
best-practices
transient
persistence
best-practices

How to add new elements to an array?

java
array-manipulation
best-practices
performance