Article
Redis is an in-memory data store, which can be used as a NoSQL database, cache, or as a typical message broker. It's written in ANSI C, which compiles into significantly efficient machine code and its ability to store data as key-value pairs makes in-memory caching an attractive use-case for Redis,...
Guest Contributor
In this article, we'll convert a JSON array into a Java Array and Java List using Jackson. Since we're using Jackson, you'll have to add it to your project. If you're using Maven, it's as easy as adding the dependency: <dependency> <groupId>com.fasterxml.jackson.core&...
David Landup
In this tutorial, we'll be converting a Java Array into a Java Stream for primitive types, as well as objects. This can be done either via Arrays.stream(), as well as Stream.of(). Arrays.stream() A good way to turn an array into a stream is to use the Arrays...
Mehreen Saeed
In this tutorial, we'll be converting a Java Stream into a Java Array for primitive types, as well as objects. Stream.toArray() The toArray() method is a built-in method from the Stream class which is really convenient to use when converting from a Stream to an array. It works for...
This tutorial will go through some common techniques for removing elements from Java arrays. Manipulating array elements is an extremely common task as discussions about it can be found on many forums, particularly on StackOverflow. Here's a list of the techniques and methods we'll go over in this article: Using...
Luka Čupić
Java provides an extensive API for handling date and time. In this article, we'll use Java's DateTimeFormatter to format dates - LocalDate, LocalDatetime, LocalTime and ZonedDateTime. Before formatting dates, you'll have to know How to Get the Current Date and Time in Java. Format Specifiers Date and time format specifiers...
Mina Krivokuća
Java provides an extensive API for handling date and time. In this article we'll use Java's SimpleDateFormat to format dates. Before formatting dates, you'll have to know How to Get the Current Date and Time in Java. Format Specifiers Date and time format specifiers are used for constructing patterns to...
Variables are named memory locations. Their values are saved in memory, which we can't typically remember as they're not human-friendly and shift around. Though, if we name the memory location, such as a, it's a lot easier to remember. Environment variables are a lot like usual programming variables, except that...
Darinka Zobenica
Command line arguments (parameters) are strings of text used to pass additional information to a program when an application is run through the command line interface (CLI) of an operating system. In this tutorial, we'll be accessing the arguments (parameters) passed into the main method of a Java application and...
© 2013-2025 Stack Abuse. All rights reserved.