Explain Codes LogoExplain Codes Logo

Java

Java Hashmap: How to get key from value?

java
hashmap
bidirectional
generics

Easiest way to convert a List to a Set in Java

java
set-operations
collections
java-8

How do I update an entity using spring-data-jpa?

java
spring-data-jpa
transactions
custom-queries

How do I use optional parameters in Java?

java
optional-parameters
varargs
clean-code

Hashmap with multiple values under the same key

java
hashmap
collections
generics

When to use StringBuilder in Java

java
stringbuilder
performance
readability

In Java, how do I check if a string contains a substring (ignoring case)?

java
string-manipulation
regex
performance

How to scroll to the bottom of a RecyclerView? scrollToPosition doesn't work

java
recyclerview
smooth-scrolling
adapter-data-observer

How to convert int[] into List<Integer> in Java?

java
stream-api
autoboxing
performance

How do I convert a Java 8 IntStream to a List?

java
java-8
collections
performance

How to schedule a periodic task in Java?

java
scheduling
executor-service
timer

How to add local jar files to a Maven project?

java
maven
local-jar
dependency-management

How to get the unique ID of an object which overrides hashCode()?

java
identityhashcode
uuid
unique-id

Cast Int to enum in Java

java
enums
performance
error-handling

Convert Iterator to List

java
iterator
list
java-8

Difference between File.separator and slash ("/") in paths

java
file-separator
cross-platform
best-practices

How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version

java
unsupported-class-version
jdk-configuration
environment-variables

Sending HTTP POST Request In Java

java
http-client
error-handling
post-request

How to reference a method in javadoc?

java
javadoc
method-referencing
documentation

Replacing a fragment with another fragment inside activity group

java
fragment-replacement
lifecycle-management
backwards-compatibility