Need Unix timestamps from dates in Java? Read further about the conversion in this short article.
Search Results for: Java Classes
Instantiate an Inner Class With Reflection in Java
Explore how to instantiate static and non-static inner classes with the Java Reflection API.
Convert Long to Date in Java
Learn to convert a long value to a date in Java using the Java 8 Date-Time API, the legacy Date API, and the Joda-Time library.
Set an Environment Variable at Runtime in Java
Learn how to have more control over the environment variables, especially for test scenarios.
Monkey Patching in Java
Learn how monkey patching can be used in Java, when to use it, and its drawbacks.
Convert byte[] to Byte[] and Vice Versa in Java
Learn several approaches to converting byte arrays to Byte arrays and vice versa in Java.
Using Current Time as Filename in Java
In this article, we will learn various approaches to using the current time as a filename in Java.
Printing Message on Console without Using main() Method in Java
Explore ways of printing messages without the main() method in Java.
Java Weekly, Issue 525
New Java features to expect in 2024, testing data access layer, eBPF and Java, and meet Docker Scout
Converting Integer to BigDecimal in Java
Explore several methods to convert from Integer to BigDecimal in Java.
Create Kubernetes Operators with the Java Operator SDK
Learn about the concept of Kubernetes operators and how we can implement them using the Java Operator SDK.
Converting BigDecimal to Integer in Java
Learn how to convert Integer to BigDecimal in Java.
Convert String to long or Long in Java
In this tutorial, we learn how to convert a String to a long primitive or Long object.
Determine the Class of a Generic Type in Java
Learn about generics and type erasure, along with its benefits and limitations, and explore various workarounds for getting a class of generic type information at runtime.
UTF-8 Validation in Java
Explore UTF-8 encoded bytes and string conversion and different types of UTF-8 validation based on byte and stream.
Parse Java Source Code and Extract Methods
A quick and practical guide to parsing Java source code and extracting methods.
How to Write Strings to OutputStream in Java
Explore several approaches for writing strings to an OutputStream in Java.
Calculate Months Between Two Dates in Java
In this article, we learn how to calculate month intervals between dates in Java.
String vs StringBuffer Comparison in Java
Compare String and StringBuffer classes.
Java Weekly, Issue 519
Region pinning for G1, Spring meets CDS, class-file API, new features for Java 22, and tech predictions for 2024. Good stuff.