Explain Codes LogoExplain Codes Logo

Java

How can I check whether an array is null / empty?

java
array-null-check
java-arrays
best-practices

How do I get the last character of a string?

java
string-manipulation
index-positioning
null-checks

C# version of java's synchronized keyword?

java
thread-safety
synchronization
lock-statement

Eclipse copy/paste entire line keyboard shortcut

java
keyboard-shortcuts
eclipse-ide
productivity

Retrieve column names from java.sql.ResultSet

java
resultsetmetadata
jdbc-connection
database-interaction

Getstring Outside of a Context or Activity

java
singleton
context
resources

How to get a context in a recycler view adapter

java
context-injection
recycler-view
adapter-pattern

Java Runtime.getRuntime(): getting output from executing a command line program

java
process-management
stream-management
error-handling

What is pluginManagement in Maven's pom.xml?

java
maven-configuration
plugin-management
pom-xml

Java 8: Difference between two LocalDateTime in multiple units

java
date-time
localdatetime
duration

Rounding BigDecimal to *always* have two decimal places

java
decimal-places
bigdecimal-rounding
java-precision-control

Installed Java 7 on Mac OS X but Terminal is still using version 6

java
java-installation
environment-variables
java-home

Spring Boot - How to log all requests and responses with exceptions in single place?

java
logging
spring-boot
exception-handling

Java 11 package javax.xml.bind does not exist

java
maven
dependency-management
java-ee

How to write logs in text file when using java.util.logging.Logger

java
logging
java-logging
file-handling

Why is printing "B" dramatically slower than printing "#"?

java
console-output
performance-optimization
ide-behavior

%like% Query in spring JpaRepository

java
prompt-engineering
best-practices
performance

How to specify jackson to only use fields - preferably globally

java
jackson-configuration
objectmapper
json-serialization

Java "lambda expressions not supported at this language level"

java
java-8
lambda
build-tools

Read url to string in few lines Java code

java
try-with-resources
io-exceptions
java-8-streams