Explain Codes LogoExplain Codes Logo

Java

How to check if an object implements an interface?

java
instanceof
reflection
design-patterns

How to install JDK 11 under Ubuntu?

java
jdk-installation
ubuntu
java-development

Java String to SHA1

java
encoding
hashing
security

Convert java.util.Date to java.time.LocalDate

java
date-conversion
java-8
performance

Using Java 8's Optional with Stream::flatMap

java
optional-engineering
streaming
java-8

How to read and write Excel files

java
file-io
excel
poi

Can you split a stream into two streams?

java
stream-api
performance
best-practices

How to convert a double to long without casting?

java
math-functions
precision
rounding

How to validate an XML file against an XSD file?

java
xml-validation
xsd-validation
xml-schema

@column(s) not allowed on a @ManyToOne property

java
jpa
hibernate
best-practices

How to set java_home on Windows 7?

java
java-home
environment-variables
java-development-kit

Convert from enum ordinal to enum type

java
enum
best-practices
performance

Android Room Database: How to handle Arraylist in an Entity?

java
room-database
android-development
data-storage

How can a Java program get its own process ID?

java
process-engineering
java-8
reflection

Best way to convert list to comma separated string in java

java
string-manipulation
performance-optimization
best-practices

Java.lang.illegalaccesserror: class lombok.javac.apt.LombokProcessor cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment

java
lombok
maven
compiler-plugin

How to run Unix shell script from Java code?

java
process-engineering
runtime-execution
process-builder

What is the recommended way to escape HTML symbols in plain Java?

java
html-escaping
string-builder
security

What is the difference between Iterator and Iterable and how to use them?

java
iterator-pattern
iterable-implementation
java-best-practices

Gradle task - pass arguments to Java application

java
gradle
java-exec
application-plugin