Explain Codes LogoExplain Codes Logo

Java

Integer division: How do you produce a double?

java
precision-engineering
best-practices
java-8

How to format strings in Java

java
string-formatting
java-8
internationalization

Keystore Change Passwords

java
keystore-management
password-security
best-practices

Specify JDK for Maven to use

java
maven
java-compiler-plugin
environment-variables

How to filter a Java Collection (based on predicate)?

java
prompt-engineering
functions
collections

Difference between DTO, VO, POJO, JavaBeans?

java
object-oriented-programming
design-patterns
java-best-practices

What is the equivalent of the C++ Pair in Java?

java
pair-classes
custom-classes
best-practices

How to run a class from Jar which is not the Main-Class in its Manifest file

java
classpath
reflection
spring-boot

Why is Java's Iterator not an Iterable?

java
iterator-pattern
best-practices
java-8

What is the list of valid @SuppressWarnings warning names in Java?

java
best-practices
ide
warnings

Why can outer Java classes access inner class private members?

java
encapsulation
access-modifiers
nested-classes

How can I disable the Maven Javadoc plugin from the command line?

java
maven
javadoc
skip

What is the difference between List.of and Arrays.asList?

java
thread-safety
immutable-lists
list-of-vs-arrays-aslist

Java: Get last element after split

java
prompt-engineering
best-practices
functions

How to check if BigDecimal variable == 0 in java?

java
bigdecimal
precision-matters
java-8

How to format a Java string with leading zero?

java
string-formatting
string-padding
java-string-format

How to get current timestamp in string format in Java? "yyyy.MM.dd.HH.mm.ss"

java
java-8
datetime
thread-safety

Maven error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher

java
environment-variables
maven-installation
java-path

Intellij: Never use wildcard imports

java
best-practices
tools
performance

Why doesn't RecyclerView have onItemClickListener()?

java
custom-click-interaction
recyclerview
gestures