Learn how Java uses the colon character in a variety of different ways.
Search Results for: Java Classes
Retrieving Unix Time in Java
In this tutorial, we learn how to retrieve Unix time values in Java.
Convert Long Timestamp to LocalDateTime in Java
Learn how to convert a Long timеstamp to a LocalDatеTimе objеct in Java.
Context-Specific Deserialization Filters in Java 17
Explore Java’s latest enhancement, Context-Specific Deserialization Filter (JEP 415), in action.
How to Parse XML to HashMap in Java
Learn different ways to parse XML into a HashMap, a data structure that allows for efficient data retrieval and manipulation.
Representing Furthest Possible Date in Java
Learn how to represent the furthest possible date using the java.util.Date and java.lang.Long classes.
Comparing the Values of Two Generic Numbers in Java
Explore the nuances of comparing Number objects, and find detailed insights and code examples for each strategy.
Create a “Mutable” String in Java
Learn about mutable Strings and ways of mutating a String.
Convert File to Byte Array in Java
Learn how to convert a file into a byte array in Java.
How to Write and Read a File with a Java HashMap
Explore three methods for writing to and reading from a file with HashMap data.
Intro to Vector Class in Java
Learn about the Vector class and explore some of its most common operations and methods.
Optional as a Record Parameter in Java
Learn about using Optional as a record parameter and understand why it’s a bad practice.
How to Document Generic Type Parameters in Javadoc
Explore best practices for using the @param tag to document generic type parameters.
How to Get First or Last Entry From a LinkedHashMap in Java
Learn various methods for retrieving the first and last key-value pairs from a LinkedHashMap
Get First Date of Current Month in Java
Learn how to obtain the first date of the current month in Java using JDK classes and third-party libraries like Joda Time.
Java Weekly, Issue 514
Spring 6.1 is getting closer, and we still have lots of things to explore in Java 21 🙂
Convert an XML Object to a String in Java
Learn how to convert an XML Document object to a string in Java.
Difference Between ZipFile and ZipInputStream in Java
Learn how to use ZipFile and ZipInputStream to read zip files, explore their functional differences, and evaluate their performance.
PrintWriter vs. FileWriter in Java
Learned the basic usage of FileWriter and PrintWriter with example code and understand their differences.
Split Java String Into Key-Value Pairs
A quick and practical guide to splitting Java String into key-value pairs.