Explain Codes LogoExplain Codes Logo

Java

Java: How to get input from System.console()

java
io-operations
exception-handling
best-practices

Eclipse Optimize Imports to Include Static Imports

java
eclipse-settings
static-imports
content-assist

Spring @Transactional method call by the method within the same class, does not work?

java
transactional
spring
aop

Accessing Kotlin extension functions from Java

java
interoperability
kotlin-java-interoperability
java-interop

Change date format in a Java string

java
date-formatting
localdatetime
datetimeformatter

Java: random long number in 0 <= x < n range

java
random-number-generation
threadlocalrandom
splittablerandom

Reflection generic get field value

java
reflection
best-practices
performance

Best way to Format a Double value to 2 Decimal places

java
decimal-format
string-format
best-practices

Json Java 8 LocalDateTime format in Spring Boot

java
objectmapper
jackson
datetime

Calculate days between two Dates in Java 8

java
date-api
localdate
chrono-unit

Import Maven dependencies in IntelliJ IDEA

java
intellij-ide
maven-configuration
dependency-management

"invalid signature file" when attempting to run a .jar

java
build-tools
maven
gradle

Convert ArrayList to String[] array

java
arraylist
toarray
java-8

Populating Spring @Value during Unit Test

java
reflection
unit-testing
spring

How to map a composite key with JPA and Hibernate?

java
orm-software
hibernate
jpa

Can't execute jar- file: "no main manifest attribute"

java
manifest
maven
ant

How to properly import a selfsigned certificate into Java keystore that is available to all Java applications by default?

java
keytool
keystore
certificate

When and how should I use a ThreadLocal variable?

java
thread-local
java-threading
thread-safety

Iterating through a Collection, Avoiding ConcurrentModificationException When Removing Objects in a Loop

java
concurrentmodificationexception
iterator
removeif

Is there a concise way to iterate over a stream with indices in Java 8?

java
stream-engineering
java-8
best-practices