Explain Codes LogoExplain Codes Logo

Java

How to preserve insertion order in HashMap?

java
hashmap
collections
best-practices

Get generic type of class at runtime

java
reflection
generics
type-erasure

Java packages com and org

java
package-management
java-conventions
namespace-conflicts

Is it possible to declare a variable in Gradle usable in Java?

java
gradle
buildconfig
system-properties

How do you remove a Cookie in a Java Servlet

java
cookie-management
java-servlet
best-practices

Why is using a wild card with a Java import statement bad?

java
best-practices
code-readability
explicit-imports

Sending Email in Android using JavaMail API without using the default/built-in app

java
async-task
email-api
network-operations

Java.net.socketexception: Connection reset

java
connection-reset
exception-handling
network-issues

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