Tag:java8

  • Skills sharing of list to map (collectors. Tomap) in Java 8

    Time:2021-11-6

    preface In actual projects, we often use the operation of converting list to map. In the past, we may use the method of for loop traversal. for instance: Define class first: //Simple object @Accessories (chain = true) // chain method @lombok.Data class User { private String id; private String name; } Then there is such […]

  • Java8 method reference and construction reference code instance

    Time:2021-6-14

    This article mainly introduces the java8 method reference and construction reference code examples. The example code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. Friends in need can refer to it An overview of method reference Method reference is a kind of abbreviation of specific lamda […]

  • Centos8 installation of jdk8 / java8 tutorial (recommended)

    Time:2021-6-4

    preface At first, I wanted to download it with WGet on centos8, then decompress it and configure environment variables. However, I failed to do it well for a long time, so I gave up and used Yum to install it directly. 1. Installation method Use Yum to install directly on centos8, and the environment variables […]

  • The method of developing Java 8 spring boot application in docker

    Time:2021-5-12

    In this article, I’ll show you how to develop and run a simple spring web application using java 8 without installing Java 8 on your local computer. Python developers use virtual environments to create and manage separate environments for different projects. Each environment uses different versions of Python to execute, store and parse Python dependencies. […]

  • Example analysis of Java 8 HashMap expansion algorithm

    Time:2021-4-13

    This article mainly introduces the Java 8 HashMap expansion algorithm instance analysis, the article through the example code introduced in great detail, for everyone’s study or work has a certain reference learning value, need friends can refer to The HashMap expansion process of java8 is mainly focused on the reset () method final Node<K,V>[] resize() […]

  • Java 8 comparator sorting method example explanation

    Time:2021-1-31

    This article mainly introduces the Java 8 comparator sorting method example detailed explanation, in this article through the example code introduction is very detailed, has the certain reference learning value to everybody’s study or the work, needs the friend to be possible to refer The comparator interface in java8 provides some static methods, which are […]

  • Group function of java8 stream

    Time:2021-1-24

    preface Recently, there was a problem in project development. According to the business requirements, the parameters sent by the front end to the back end are a list (such as list). Therefore, the back end also uses a list to receive. However, after the back-end gets the data, I find that I need to process […]

  • Java8 default methods principle and example explanation

    Time:2020-11-28

    This article mainly introduces the java8 default method default methods principle and example detailed explanation, the article through the example code introduction is very detailed, has the certain reference study value to everybody’s study or the work, needs the friend may refer to Java 8 introduces a new language feature, default methods. Default methods enable […]

  • 18 Java 8 date processing practices (very useful)

    Time:2020-5-30

    Java 8 introduces a new date time API. In the tutorial, we will learn how to use the new API through some simple examples. The way Java deals with dates, calendars, and times has been criticized by the community java.util.Date Setting it to a mutable type and the non thread safety of simpledateformat make its […]

  • The use of static and default in the interface of Java 8’s new features

    Time:2020-5-27

    Static method Java 8 adds a new function to the interface: define one or more static methods. The usage is the same as the normal static method. The static method can be defined in the interface, and can be called through the interface name. Method name (). The implementation class cannot inherit the static method; […]

  • Date time object and some other features of Java 8 new features

    Time:2020-4-27

    Date time object There are two operations on date and time: Conversion: conversion with strings, conversion with timestamps Calculation: calculate the interval between two time points, time point and time period (calculate next week n, next month D, last year m month D, etc.) Java 8 provides three classes:LocalDate、LocalTime、LocalDateTimeIn the form of2020-01-01、12:30:00、2020-01-01 12:30:00 create object […]

  • How to handle list collection with lambda in Java 8

    Time:2020-3-26

    This article mainly introduces how java8 processes list sets through lambda. The example code is introduced in detail in this article, which has a certain reference value for your study or work. You can refer to the following for your friends With the new lambda expression in Java 8, we can use simple and efficient […]