Explain Codes LogoExplain Codes Logo

Java

How to enter quotes in a Java string?

java
string-manipulation
string-formatting
regular-expressions

How to encrypt String in Java

java
cryptography
security-best-practices
key-management

How to directly initialize a HashMap (in a literal way)?

java
map-initialization
java-9
immutable-maps

How to determine an object's class?

java
instanceof
class-checks
polymorphism

How to de/serialize an immutable object without default constructor using ObjectMapper?

java
objectmapper
serialization
deserialization

How to debug stream().map(...) with lambda expressions?

java
lambda
debugging
stream-api

How to deal with a slow SecureRandom generator?

java
performance-issues
security-best-practices
entropy-management

How to create a windows service from java app

java
wrapper
service-wrapper
java-service

How to create a project from existing source in Eclipse and then find it?

java
file-management
eclipse-configuration
project-structure

How to create a file in a directory in Java?

java
file-io
exception-handling
file-operations

How to copy Java Collections list

java
deep-copies
collections
performance

How to convert ZonedDateTime to Date?

java
date-time
java-time
time-zone

How to convert .pfx file to keystore with private key?

java
keytool
keystore
private-key

How to convert number to words in Java

java
number-to-words
scale-units
decimal-handling

How to convert current date into string in Java?

java
date-formatting
datetime-api
thread-safety

How to convert BigDecimal to Double in Java?

java
precision
rounding
best-practices

How to convert a String to CharSequence?

java
java-8
generics
type-casts

How to convert an Instant to a date format?

java
date-formatting
instant-conversion
java-8

How to convert a Hibernate proxy to a real entity object

java
hibernate
proxy
entity

How to compare dates in Java?

java
date-comparison
java-8
time-zones