Explain Codes LogoExplain Codes Logo

Java

Can you organize imports for an entire project in eclipse with a keystroke?

java
eclipse-configuration
import-management
productivity-tips

How do I apply the for-each loop to every character in a String?

java
for-each-loop
string-manipulation
java-8-streams

Setting the default Java character encoding

java
encoding
best-practices
java-8

Create whole path automatically when writing to a new file

java
file-writing
resource-handling
try-with-resources

Getting "unixtime" in Java

java
unixtime
java-8
datetime

Android on Text Change Listener

java
textwatcher
kotlin
android-development

Converting Integer to Long

java
casting
null-handling
performance-optimization

Run Main Class of Maven Project

java
maven-plugin
java-execution
command-line-arguments

How can I check whether an array is null / empty?

java
array-null-check
java-arrays
best-practices

How do I get the last character of a string?

java
string-manipulation
index-positioning
null-checks

C# version of java's synchronized keyword?

java
thread-safety
synchronization
lock-statement

Eclipse copy/paste entire line keyboard shortcut

java
keyboard-shortcuts
eclipse-ide
productivity

Retrieve column names from java.sql.ResultSet

java
resultsetmetadata
jdbc-connection
database-interaction

Getstring Outside of a Context or Activity

java
singleton
context
resources

How to get a context in a recycler view adapter

java
context-injection
recycler-view
adapter-pattern

Java Runtime.getRuntime(): getting output from executing a command line program

java
process-management
stream-management
error-handling

What is pluginManagement in Maven's pom.xml?

java
maven-configuration
plugin-management
pom-xml

Java 8: Difference between two LocalDateTime in multiple units

java
date-time
localdatetime
duration

Rounding BigDecimal to *always* have two decimal places

java
decimal-places
bigdecimal-rounding
java-precision-control

Installed Java 7 on Mac OS X but Terminal is still using version 6

java
java-installation
environment-variables
java-home