Explain Codes LogoExplain Codes Logo

Java

How to create a temporary directory/folder in Java?

java
temporary-directory
exception-handling
file-io

Is there a Newline constant defined in Java like Environment.Newline in C#?

java
newline
file-handling
text-manipulation

Omitting one Setter/Getter in Lombok

java
lombok
getters
setters

Finding Number of Cores in Java

java
multi-threading
performance
core-count

Java string split with "." (dot)

java
string-split
regex
edge-cases

How to get the first element of the List or Set?

java
collections
optional
error-handling

A quick and easy way to join array elements with a separator (the opposite of split) in Java

java
string-joining
utility-tools
best-practices

How to remove duplicate white spaces in string using Java?

java
string-manipulation
regex
performance

How to create a directory in Java?

java
directory-creation
exception-handling
nio

Can I catch multiple Java exceptions in the same catch clause?

java
multi-catch
exception-handling
code-organization

Initializing a Guava ImmutableMap

java
immutablemap
builder
performance

How to convert byte array to string and vice versa?

java
byte-array
string-conversion
utf-8

Should a retrieval method return `null` or throw an exception when it can't produce the return value?

java
null-checks
error-handling
optional

Android RecyclerView addition & removal of items

java
recyclerview
item-management
click-events

Printing HashMap In Java

java
hashmap
iterative
performance

How to check certificate name and alias in keystore files?

java
keystore
security
openssl

Retrieving a List from a java.util.stream.Stream in Java 8

java
java-8
streams
collectors

What is the difference between Errors and Exceptions?

java
exceptions
error-handling
best-practices

How to call a method after a delay in Android

java
delayed-execution
background-tasks
lifecycle-management

Easy way to convert Iterable to Collection

java
collections
utility-methods
performance