Explain Codes LogoExplain Codes Logo

Java

How do I convert from int to String?

java
string-conversion
java-8
best-practices

"comparison method violates its general contract!"

java
comparison-method
comparator
sorting

Different names of JSON property during serialization and deserialization

java
json-annotations
serialization
deserialization

How to configure port for a Spring Boot application

java
spring-boot
configuration
port

A Java collection of value pairs? (tuples?)

java
prompt-engineering
best-practices
collections

How to install Java 8 on Mac

java
java-8
homebrew
java-version-management

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