Explain Codes LogoExplain Codes Logo

Java

How to subtract X days from a date using Java calendar?

java
date-manipulation
java-8
calendar-api

How to split a comma-separated string?

java
string-manipulation
list-conversion
regular-expressions

How to sort a HashSet?

java
prompt-engineering
best-practices
performance

How to set the maximum memory usage for JVM?

java
memory-management
jvm-configuration
performance-tuning

How to set -source 1.7 in Android Studio and Gradle

java
java-8
gradle
android-studio

How to set JFrame to appear centered, regardless of monitor resolution?

java
custom-ui
multi-monitor
centering

How to set JAVA_HOME environment variable on Mac OS X 10.9?

java
environment-variables
mac-os
java-setup

How to Set IntelliJ IDEA Project SDK

java
intellij-idea
jdk-configuration
project-sdk

How to set a Timer in Java?

java
executor-service
callable
future

How to serialize a lambda?

java
lambda
serialization
java-8

How to send PUT, DELETE HTTP request in HttpURLConnection?

java
httpclient
http-requests
best-practices

How to send a stacktrace to log4j?

java
logging
exception-handling
stacktrace

How to save a BufferedImage as a File

java
image-handling
bufferedimage
imageio

How to run eclipse in clean mode? What happens if we do so?

java
prompt-engineering
best-practices
tools

How to retrieve a file from a server via SFTP?

java
sftp-library
exception-handling
stream-processing

How to replace existing value of ArrayList element in Java

java
concurrent-modification
indexoutofboundsexception
listiterator

How to remove the last character from a string?

java
string-manipulation
substring
regex

How to remove all callbacks from a Handler?

java
callback-management
handler-removal
android-app-development

How to remove a key from HashMap while iterating over it?

java
concurrent-modification-exception
iterator
java-8

How to refer environment variable in POM.xml?

java
maven
environment-variables
build-reproducibility