Article
REST stands for REpresentational State Transfer, a standardized approach to building web services. A REST API is an intermediary Application Programming Interface that enables two applications to communicate with each other over HTTP, much like how servers communicate to browsers. RESTful is the most common approach for building web services...
Rayven Yor Esplanada
Key-value stores are essential and often used, especially in operations that require fast and frequent lookups. They allow an object - the key - to be mapped to another object, the value. This way, the values can easily be retrieved, by looking up the key. In Java, the most popular...
Guest Contributor
Sorting data is a frequent problem in computer science. Given a collection of elements, the goal is to rearrange them in some order. Common examples are sorting an array alphabetically or from smallest to largest. Sorted data is a lot easier to manipulate. Finding the largest or smallest element of...
Kristina Popovic
Whether in Java, or any other programming language, it is a common occurrence to check if an array contains a value. This is one of the things that most beginners tend to learn, and it is a useful thing to know in general. In this article, we'll take a look...
Branko Ilic
In this tutorial, we'll take a look at how to declare and initialize arrays in Java. We declare an array in Java as we do other variables, by providing a type and name: int[] myArray; To initialize or instantiate an array as we declare it, meaning we assign values as...
Mohamed Echout
Introduced in Java 8, the Stream API is commonly used for filtering, mapping and iterating over elements. When working with streams, one of the common tasks is finding duplicate elements. In this tutorial, we'll be covering several ways to find duplicate elements in a Java Stream. Collectors.toSet() The easiest...
Ilkyaz Altuntas
Oftentimes, we are faced with a situation where we need to split a string at some specific character or substring, to derive some useful information from it. For example, we might want to split a phone number on the country code or data imported from a CSV file. In this...
With Spring, we map requests to request handlers via the @RequestMapping annotation. Spring Boot introduced us to derived types of this annotation - @GetMapping, @PostMapping, @DeleteMapping, etc. These requests contain different types of information and data - and depending on what our endpoint does with the request, we may want...
David Landup
In Java, working with files and directories is rather common. We are also often interested in the contents of those files and directories. Depending on the contents of the file, we might want to behave differently. We might be writing some data into a file and we first want to...
Luka Čupić
© 2013-2025 Stack Abuse. All rights reserved.