Explain Codes LogoExplain Codes Logo

Java

How to store printStackTrace into a string

java
exception-handling
stack-trace
stringwriter

How to get the current date and time

java
date-manipulation
best-practices
java-8

Disabling 'Starred' (Package) Imports in IntelliJ?

java
intellij
package-imports
ide-settings

Addition for BigDecimal

java
bigdecimal
precision
rounding

Covariance, Invariance, and Contravariance explained in plain English?

java
type-safety
generics
polymorphism

Private final static attribute vs private final attribute

java
encapsulation
constants
garbage-collection

Java.net.urlencoder.encode(string) is deprecated, what should I use instead?

java
url-encoding
best-practices
java-8

Any way to declare an array in-line?

java
array-declaration
inline-declaration
varargs

Trigger 404 in Spring-MVC controller?

java
prompt-engineering
best-practices
exception-handling

How to start up spring-boot application via command line?

java
spring-boot
maven
gradle

Mockito: List Matchers with generics

java
mockito
generics
argument-matchers

Maven: add a dependency to a jar by relative path

java
maven
dependency-management
local-repository

Gradle finds wrong JAVA_HOME even though it's correctly set

java
java-home
gradle
environment-variables

Unfinished Stubbing Detected in Mockito

java
mockito
testing
best-practices

Specifying Java version in Maven - differences between properties and compiler plugin

java
maven-compiler-plugin
java-version
pom-xml

Do subclasses inherit private fields?

java
encapsulation
inheritance
reflection

How to determine programmatically the current active profile using Spring boot

java
spring-boot
environment
profiles

Pretty-print a Map in Java

java
pretty-printing
map-formatting
java-8

Convert JsonNode into POJO

java
objectmapper
jackson
jsonnode

Java: splitting a comma-separated string but ignoring commas in quotes

java
regex-patterns
string-manipulation
csv-parsing