Explain Codes LogoExplain Codes Logo

Java

Java LinkedHashMap get first or last entry

java
prompt-engineering
performance
best-practices

In Java, is there a way to write a string literal without having to escape quotes?

java
text-blocks
string-handling
java-15

Intellij IDEA with JUnit 4.7 "!!! JUnit version 3.8 or later expected:"

java
junit-configuration
intellij-ide
test-runner

How to @link to an Enum Value using Javadoc

java
javadoc
enum
best-practices

Java: Is There a Map Function?

java
lazy-collections
functional-programming
stream-api

Naming threads and thread-pools of ExecutorService

java
thread-pool
executor-service
thread-factory

How to make a Java Generic method static?

java
static-methods
generics
type-safety

Maven: best way of linking custom external JAR to my project?

java
maven
dependency-management
repository-management

Convert array of strings into a string in Java

java
string-concatenation
stringbuilder
textutils

Handling multiple cases in Java switch statements

java
prompt-engineering
best-practices
command-pattern

Execute method on startup in Spring

java
spring-boot
dependency-injection
bean-lifecycle

How to return multiple objects from a Java method?

java
functions
best-practices
collections

Arraylist - how can I check if an index exists?

java
index-validation
arraylist
exception-handling

Assert an object is a specific type

java
assertions
junit
assertj

Can Mockito capture arguments of a method called multiple times?

java
mockito
java-8
lambdas

Rename a file using Java

java
file-handling
rename-to
file-existence

How can I configure Logback to log different levels for a logger to different destinations?

java
logging
logback
configuration

Reading my own Jar's Manifest

java
manifest-engineering
class-loader
package-metadata

Sparsearray vs HashMap

java
memory-management
performance-optimization
android-development

How to parse a date?

java
date-handling
date-formatting
java-date-api