Explain Codes LogoExplain Codes Logo

Java

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

Unable to locate tools.jar

java
jdk
tools
installation

How to programmatically set drawableLeft on Android button?

java
drawable
ui-ux
vector-drawables

Key existence check in HashMap

java
hashmap
performance
best-practices

Is there a destructor for Java?

java
garbage-collection
autocloseable
memory-leaks

What's the difference between getRequestURI and getPathInfo methods in HttpServletRequest?

java
httpservletrequest
url-decoding
spring-mvc

How to change font size in Eclipse for Java text editors?

java
eclipse
font-size
text-editor

Java - removing first character of a string

java
string-manipulation
unicode
performance

Gradle build without tests

java
gradle
ci-cd
flaky-tests

What exactly is Apache Camel?

java
integration
camel
dsl

How to print binary tree diagram in Java?

java
binary-tree
recursion
performance

'java' is not recognized as an internal or external command

java
environment-variables
java-installation
troubleshooting

What is the best way to find the user's home directory in Java?

java
user-home
jna
file-io

How can I convert a stack trace to a string?

java
stack-trace
logging
dependencies