Explain Codes LogoExplain Codes Logo

Java

How to convert java.sql.timestamp to LocalDate (java8) java.time?

java
time-zone-differences
java-time-api
date-conversion

Spring Boot: Cannot access REST Controller on localhost (404)

java
spring-boot
rest-controller
error-handling

Index (zero based) must be greater than or equal to zero

java
indexing
error-prevention
best-practices

Why use Optional.of over Optional.ofNullable?

java
null-handling
optional-usage
best-practices

Is there a date format to display the day of the week in java?

java
date-formatting
java-8
datetimeformatter

Jaxb, Class has two properties of the same name

java
jaxb-annotations
xml-access-type
xml-element

How can I send large messages with Kafka (over 15MB)?

java
performance-testing
kafka-configuration
data-management

Build project into a JAR automatically in Eclipse

java
build-process
eclipse-builders
ant

How can I print a string adding newlines in Java?

java
formatted-strings
string-manipulation
newlines

How to intercept SLF4J (with logback) logging via a JUnit test?

java
logging
junit
test-environment

Determine if a String is an Integer in Java

java
input-validation
regex-patterns
best-practices

How to get the selected index of a RadioGroup in Android

java
android-development
radio-group
index-fetching

Functional style of Java 8's Optional.ifPresent and if-not-Present?

java
functional-programming
optional-class
java-8

Get yesterday's date using Date

java
date-formatting
java-8
calendar-api

Java version automatically changes to Java 1.5 after Maven update

java
maven-configuration
java-compiler-plugin
ide-settings

How to get the name of a class without the package?

java
reflection-api
class-naming
java-8

Variable is accessed within inner class. Needs to be declared final

java
variable-access
final-variable
inner-class

Getting the class name from a static method in Java

java
class-name
static-method
java-versions

Is there a way to ignore a single FindBugs warning?

java
findbugs-suppression
spotbugs-annotations
java-8-features

How can I inject a property value into a Spring Bean which was configured using annotations?

java
spring-configuration
property-injection
spel-expressions