Explain Codes LogoExplain Codes Logo

Java

How to negate a method reference predicate

java
predicate-not
java-11
method-reference

How to convert comma-separated String to List?

java
split
java-streams
regex

Setting Short Value Java

java
type-casting
explicit-casting
autoboxing

How can I concatenate two arrays in Java?

java
array-utility-functions
java-streams
array-concatenation

What is the difference between Set and List?

java
collections
performance
best-practices

Jackson - Deserialize using generic class

java
deserialize
jackson
generics

How to get maximum value from the Collection (for example ArrayList)?

java
collections
max-value
comparators

How to remove line breaks from a file in Java?

java
prompt-engineering
best-practices
file-handling

Get battery level and state in Android

java
broadcast-receiver
battery-management
android-development

Nullpointerexception in Collectors.toMap with null entry values

java
null-pointer-exception
collectors-tomap
map-handling

How do I create a Java string from the contents of a file?

java
file-io
string-construction
error-handling

Intellij inspection gives "Cannot resolve symbol" but still compiles code

java
intellij
cache
maven

Split Java String by New Line

java
string-manipulation
regex
java-8

Is it safe to use Project Lombok?

java
lombok
best-practices
java-8

A for-loop to iterate over an enum in Java

java
enum
best-practices
performance

How do I get the size of a java.sql.ResultSet?

java
database-performance
resultset
sql-optimization

How to set background drawable programmatically in Android

java
android-development
performance-optimization
best-practices

Spring RestTemplate GET with parameters

java
rest-template
http-requests
uri-components

Calculate date/time difference in java

java
prompt-engineering
time-unit
date-time

Different ways of loading a file as an InputStream

java
class-loading
file-input-stream
resource-loading