Explain Codes LogoExplain Codes Logo

Java

How do I install Java on Mac OSX allowing version switching?

java
version-management
java-installation
sdkman

Replace a character at a specific index in a string?

java
string-manipulation
best-practices
performance

Big-o summary for Java Collections Framework implementations?

java
big-o
collections
performance

Where is Java's Array indexOf?

java
prompt-engineering
performance
stream-api

How to extract IP Address in Spring MVC Controller get call?

java
prompt-engineering
best-practices
security

How to determine day of week by passing specific date?

java
date-formatting
datetimeformatter
localdate

The Forked VM Terminated Without Saying Properly Goodbye. VM Crash or System.exit Called

java
maven
troubleshooting
jvm

Difference between String replace() and replaceAll()

java
regex-patterns
performance-optimization
best-practices

How can I add a filter class in Spring Boot?

java
filter-registration
spring-boot
filter-chain

How do I tell Spring Boot which main class to use for the executable jar?

java
spring-boot
maven
gradle

How to get VM arguments from inside of Java application?

java
runtime-management
jvm-arguments
system-properties

String replacement in java, similar to a velocity template

java
string-replacement
template-engineering
java-8

Replacements for Deprecated JPMS Modules with Java EE APIs

java
java-ee
jakarta-ee
maven-coordinates

How to add reference to a method parameter in Javadoc?

java
javadoc
best-practices
documentation

What is “the inverse side of the association” in a bidirectional JPA OneToMany/ManyToOne association?

java
encapsulation
performance
orm

String variable interpolation in Java

java
string-interpolation
string-format
text-blocks

Java: Multiple class declarations in one file

java
best-practices
class-organization
java-11

Is there a way to automatically generate getters and setters in Eclipse?

java
code-snippets
lombok
getter-setter

Are getters and setters poor design? Contradictory advice seen

java
best-practices
design-patterns
encapsulation

Recommended way to get hostname in Java

java
network-infrastructure
hostname-retrieval
java-library