Explain Codes LogoExplain Codes Logo

Java

Retrieving a List from a java.util.stream.Stream in Java 8

java
java-8
streams
collectors

What is the difference between Errors and Exceptions?

java
exceptions
error-handling
best-practices

How to call a method after a delay in Android

java
delayed-execution
background-tasks
lifecycle-management

Easy way to convert Iterable to Collection

java
collections
utility-methods
performance

How to use java.String.format in Scala?

java
string-formatting
scala
advanced-formatting

Get a list of all threads currently running in Java

java
threads
performance
monitoring

Java - get the current class name?

java
class-names
reflection
best-practices

Multiple queries executed in java in a single statement

java
jdbc
resultset
transactions

Splitting string with pipe character ("|")

java
string-splitting
regex
input-validation

Spring Boot and multiple external configuration files

java
spring-boot
property-management
configuration

Coding Conventions - Naming Enums

java
naming-conventions
enums
best-practices

Jackson with JSON: Unrecognized field, not marked as ignorable

java
json-deserialization
objectmapper
jsonignoreproperties

Convert String to Uri

java
uri
android
error-handling

Why are static variables considered evil?

java
static-variables
design-patterns
object-oriented

How can I increment a date by one day in Java?

java
date-increment
calendar
localdate

What causes error "No enclosing instance of type Foo is accessible" and how do I fix it?

java
inner-classes
static-nested-class
refactoring

Junit 5: How to assert an exception is thrown?

java
exception-handling
junit
lambda

Java current machine name and logged in user?

java
system-properties
exception-handling
cross-platform

Getting a File's MD5 Checksum in Java

java
md5
streams
exceptions

How to print color in console using System.out.println?

java
ansi-codes
console-colors
jcolor