Explain Codes LogoExplain Codes Logo

Java

How to convert a LocalDate to an Instant?

java
localdate
instant
timezone

How can I get the current stack trace in Java?

java
stack-trace
debugging
best-practices

How to convert / cast long to String?

java
string-conversion
long-literals
number-format-exception

How do I speed up the gwt compiler?

java
gwt
compiler-optimization
best-practices

How to automatically generate N "distinct" colors?

java
color-generation
algorithms
web-development

Can an int be null in Java?

java
null-pointer-exception
optional
refactoring

Java Delegates?

java
delegates
lambdas
functional-interfaces

@requestparam vs @PathVariable

java
requestparam
pathvariable
url-encoding

Convert String to double in Java

java
input-sanitization
bigdecimal
error-handling

How to for each the hashmap?

java
hashmap
lambda
iterator

What is the equivalent of Java static final fields in Kotlin?

java
kotlin
constants
javainteroperability

Scanning Java annotations at runtime

java
reflection
spring
classgraph

Compare two objects in Java with possible null values

java
null-safety
equals
comparator

How to avoid "ConcurrentModificationException" while removing elements from `ArrayList` while iterating it?

java
concurrent-modification
arraylist
multithreading

How do I trim a file extension from a String in Java?

java
file-extension
edge-cases
unit-testing

When should I use the "strictfp" keyword in Java?

java
strictfp
performance
best-practices

Get file name from URL

java
file-handling
commons-io
regex

How can I pad a String in Java?

java
padding
string-formatting
guava

Should I use Java's String.format() if performance is important?

java
stringbuilder
performance
readability

Get java.nio.file.Path object from java.io.File

java
path
file-operations
exception-handling