Explain Codes LogoExplain Codes Logo

Java

How to read a text-file resource into Java unit test?

java
input-stream
file-reading
java-8

How to read a JSON file into Java with the Simple JSON library

java
json-parsing
file-handling
error-handling

How to randomly pick an element from an array

java
random-number-generation
threadlocalrandom
securerandom

How to properly match varargs in Mockito

java
mockito
varargs
testing

How to print a query string with parameter values when using Hibernate

java
hibernate-logging
sql-logging
database-configuration

How to present a simple alert message in java?

java
prompt-engineering
best-practices
user-interface

How to perform mouseover function in Selenium WebDriver using Java?

java
selenium
webdriver
javascriptexecutor

How to pass an object from one activity to another on Android

java
parcelable
serialization
gson

How to modify JsonNode in Java?

java
json-parsing
object-mapping
json-pointer

How to manage REST API versioning with spring?

java
api-versioning
spring-annotations
request-mapping

How to make an Android device vibrate? with different frequency?

java
haptic-feedback
vibration-patterns
android-development

How to include jar files with java file and compile in command prompt

java
classpath
java-8
best-practices

How to get the current time in YYYY-MM-DD HH:MI:Sec.Millisecond format in Java?

java
date-time
java-8
best-practices

How to get Scala List from Java List?

java
conversion-strategies
scala-collections
functional-programming

How to get names of classes inside a jar file?

java
prompt-engineering
reflection
class-loading

How to get HTTP response code for a URL in Java?

java
http-requests
http-response-codes
httpclient

How to get active user's UserDetails

java
spring-security
user-details
authentication-principal

How to get absolute path to file in /resources folder of your project

java
file-path
java-resources
classpath

How to generate UML diagrams (especially sequence diagrams) from Java code?

java
uml-diagrams
sequence-diagrams
java-code

How to Generate Javadoc HTML Files in Eclipse?

java
javadoc
eclipse-plugin
java-documentation