Explain Codes LogoExplain Codes Logo

Java

I get exception when using Thread.sleep(x) or wait()

java
multitasking
interruptedexception
concurrency

How do I convert a Map to List in Java?

java
map-to-list
streams
java-8

Does a finally block always get executed in Java?

java
finally
best-practices
exception-handling

Convert JSON String to Pretty Print JSON Output Using Jackson

java
json
pretty-print
objectmapper

Where is JAVA_HOME on macOS Mojave (10.14) to Lion (10.7)?

java
java-home
jdk-versions
homebrew

Where can I find the Java SDK in Linux after installing it?

java
jdk
linux
path

What is the "continue" keyword and how does it work in Java?

java
continue
best-practices
nested-loops

Reverse a string in Java

java
string-reversal
coding-interview
best-practices

Override default Spring-Boot application.properties settings in Junit Test

java
spring-boot
junit
testing

How do I use a PriorityQueue?

java
priorityqueue
comparator
lambda

Singleton with Arguments in Java

java
singleton
thread-safety
builder-pattern

How to convert a Java 8 Stream to an Array?

java
java-8
streams
performance

How to change color of the back arrow in the new Material theme?

java
customization
theme-attributes
navigation-icon

How to set selected item of Spinner by value, not by position?

java
spinner
arraylist
nullpointerexception

Converting Java bitmap to byte array

java
bitmap
byte-array
memory-management

Impossible to make a cached thread pool with a size limit?

java
thread-pool
concurrency
best-practices

Java: Date from unix timestamp

java
date-time
unix-timestamp
time-zones

How to set a specific Java version in Maven?

java
maven
java-home
build-environment

Check if null Boolean is true results in exception

java
null-pointer-exception
boolean-checks
optional

Using Mockito's generic "any()" method

java
mockito
generics
testing