1. Introduction Java 16 has a list of new features. In this tutorial, I will demonstrate the following new features: Java language – add a new java.lang.record type and the instanceof the method supports pattern matching.Java API – Stream API adds toList() and mapMulti() methods. 2. Technologies Used The example code in this article was built and run using: Java ...
Read More »Home » Archives for Mary Zheng »
Java 8 vs Java 9
In this article, we’re going to present Java 8 vs Java 9. 1. Introduction Java is an object-oriented programming language and first released in 1995. Java 8 is the first long-term-support (LTS) version and released in 2014. The current LTS version is 11. Java 9 is released in 2017. According to this article, Java 8 is the most popular version. ...
Read More »How to Download and Install Java 9
In this article, we will explain how to download and install Java 9. 1. Introduction Java 9 was first released on October 17, 2017 and its final version – 9.0.4 – was released on January 16, 2018. In this example, I will demonstrate the following: Download and Install Java 9Java 9 Collection FactoryJava 9 ModuleJava 9 JShell Command 2. Technologies ...
Read More »How to Handle Exceptions in Rest Service
In this article, we will explain how to Handle Exceptions in Rest Service. 1. Introduction Rest Service is a lightweight service that is built on the REpresentational State Transfer (REST) architecture via HTTP protocol. HTTP status code defines 4xx and 5xx error codes. Java API for RESTFul Web services (JAX-RS) specification is defined by Java EE with a set of ...
Read More »Java 8 API Tutorial
In this article, we are going to explain the Java 8 API through examples. 1. Introduction Java 8 was released on March 18, 2014 with several enhancements. In this example, I will demonstrate the following API enhancements: Support Functional programming with Lambda Expression, Functional Interface, and Stream APINew Java Date APIInterface’s Default Method 2. Technologies Used The example code in ...
Read More »Splunk Stats Command Example
1. Introduction Splunk is software for searching, monitoring, and analyzing machine-generated data. Analyzing data relies on mathematical statistics data. Splunk provides a transforming stats command to calculate statistical data from events. In this example, I will demonstrate how to use the stats command to calculate the sum and average and find the minimum and maximum values from the events. 2. Technologies ...
Read More »Splunk Calculated Fields Example
In this article we are going to show a Splunk Calculated Fields Example. 1. Introduction Splunk is software for searching, monitoring, and analyzing machine-generated data. Calculated fields are fields added to events at search time. In this example, I will demonstrate: How to add a calculated field via web interfaceHow to add a calculated field via the eval commandHow to manage ...
Read More »Splunk Basic Charts Example
In this example, I will show how to create and manage basic charts via Splunk web interface and chart command. 1. Introduction A chart is a graphical representation of a statistical data with symbols like a line, bar, or area. It has two scaled axes. Here are three basic chart types: Bar chart – uses bar length to represent the ...
Read More »Splunk Schedules and Alerts Example
1. Introduction Splunk includes scheduled reports to run reports at a scheduled internal. Splunk alert is a saved search which can be run real-time or on a scheduled internal and can trigger one or more actions. In this example, I will demonstrate how to schedule a report and set up an alert with step-by-step instructions along with screenshots. 2. Technologies ...
Read More »Splunk Dashboards Example
In this article, we will explain Dashboards in Splunk. 1. Introduction Splunk is software for searching, monitoring, and analyzing machine-generated data. It provides a web interface to create dashboards. In this example, I will demonstrate: How to create a dashboard from scratchHow to create a dashboard from a search resultHow to create a dashboard from a reportHow to create a ...
Read More »