Explain Codes LogoExplain Codes Logo

Java

Is it possible to create a File object from InputStream

java
stream-handling
file-creation
resource-management

Byte[] to file in Java

java
io-exception-handling
try-with-resources
file-output-stream

How do I get the SharedPreferences from a PreferenceActivity in Android?

java
prompt-engineering
singleton
sharedpreferences

Best way to "negate" an instanceof

java
instanceof
negation
conditional-logic

Intellij Incorrectly Saying No Beans of Type Found for Autowired Repository

java
intellij
spring-data-plugin
spring-boot

How can I read a large text file line by line using Java?

java
streaming
lambda
performance

Can we instantiate an abstract class?

java
anonymous-inner-classes
instantiation
abstract-classes

Jax-rs / Jersey how to customize error handling?

java
exception-handling
error-response
exception-mappers

How do I prevent the modification of a private field in a class?

java
defensive-coding
immutability
null-safety

How to test that no exception is thrown?

java
assertions
junit
test-coverage

Gson - Date format

java
date-format
gson
custom-date-time-handling

Double vs. BigDecimal?

java
precision-engineering
best-practices
financial-applications

How to convert a Collection to List?

java
collections
performance
best-practices

Run jar file in command prompt

java
prompt-engineering
best-practices
performance

Intellij Organize Imports

java
intellij-ide
import-organization
coding-habits

How to use java.net.URLConnection to fire and handle HTTP requests

java
http-requests
java-8
httpclient

Where to get "UTF-8" string literal in Java?

java
constant-variables
string-literals
best-practices

Java Array Sort Descending

java
sorting
comparator
arrays

What's the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?

java
best-practices
performance
tools

Programmatically Change Log Level in Log4j2

java
logging
log4j2
configurator