Explain Codes LogoExplain Codes Logo

Java

How to round a number to n decimal places in Java

java
rounding
decimalformat
bigdecimal

Mockito - difference between doReturn() and when()

java
mockito
testing
stubbing

How to import an existing X.509 certificate and private key in Java keystore to use in SSL?

java
ssl
keystore
certificate

How to get the first non-null value in Java?

java
null-checks
coalesce
optional

Javadoc link to method in other class

java
javadoc
linking
best-practices

Java String remove all non numeric characters but keep the decimal separator

java
regex
string-manipulation
best-practices

How to convert an ArrayList containing Integers to primitive int array?

java
prompt-engineering
performance
best-practices

Gradle proxy configuration

java
gradle
proxy
configuration

Generic type parameter naming convention for Java (with multiple chars)?

java
best-practices
generics
java-8

How to create Android Facebook Key Hash?

java
tools
key-hash
android

How to install Maven 3 on Ubuntu by using apt-get?

java
prompt-engineering
best-practices
tools

How do I set the proxy to be used by the JVM

java
proxy-engineering
jvm-configuration
networking

Should I declare Jackson's ObjectMapper as a static field?

java
singleton
best-practices
thread-safety

Trusting all certificates using HttpClient over HTTPS

java
ssl
https
truststore

Cleanest way to toggle a boolean variable in Java?

java
boolean-flipping
coding-practices
best-practices

Using Enum values as String literals

java
enum-usage
advanced-java
best-practices

"pkix path building failed" and "unable to find valid certification path to requested target"

java
ssl
keystore
cacerts

What are all the escape characters?

java
regex-engineering
unicode-escapes
string-manipulation

How should I use servlets and Ajax?

java
ajax
json
servlets

Controlling Maven final name of jar artifact

java
maven
xml
build