Explain Codes LogoExplain Codes Logo

Java

Ignore duplicates when producing map using streams

java
stream-processing
java-8
best-practices

Returning a Void object

java
generics
null-object-pattern
optional

Find first element by predicate

java
lazy-evaluation
optional
stream-api

Get integer value of the current year in Java

java
time-pitfalls
java-8
best-practices

Remove multiple keys from Map in efficient way?

java
map-removal
java-streams
concurrent-modifications

What is the Simplest Way to Reverse an ArrayList?

java
reversal-methods
arraylist
java-8-streams

Using context in a fragment

java
context-api
fragment-lifecycle
android-development

Java String split removed empty values

java
regex
string-manipulation
best-practices

How can I read input from the console using the Scanner class in Java?

java
scanner
input-validation
try-catch

Which @NotNull Java annotation should I use?

java
null-pointer-exception
annotations
best-practices

How can I log SQL statements in Spring Boot?

java
logging
spring-boot
sql-logging

Extract source code from .jar file

java
decompilation
java-decompilers
bytecode

String.format() to format double in Java

java
formatting
decimal-format
locale-specific-formatting

How can I create a memory leak in Java?

java
memory-leaks
resource-management
threadlocals

Things possible in IntelliJ that aren't possible in Eclipse?

java
intellij-vs-eclipse
ide-comparison
productivity-tools

Difference between HashMap, LinkedHashMap, and TreeMap

java
map-implementation
data-structures
time-complexity

What is a NullPointerException, and how do I fix it?

java
null-pointer-exception
java-best-practices
debugging

Installing Java 7 on Ubuntu

java
java-7
update-alternatives
java-version-management

Jcombobox Selection Change Listener?

java
event-listeners
gui-programming
swing

How to compare two Dates without the time portion?

java
date-comparison
time-zone
date-library