Summary of common Java classes and methods - Crazy Lecture Notes

Common classes and methods 1.1 concept of class Class: a class is a template that describes the behavior and state of a class of objects. Problem: explain the base class, subclass, derived class, parent class and superclass in the class A: base class, parent class and superclass all mean the same thing, but they are just different terms. The ...

Posted by flyersman on Fri, 14 Jan 2022 11:47:48 +0100

Goland study notes

Golang study notes This article is a handy note when watching the video material Golang beginner tutorial from YouTube. It is only for auxiliary learning and review. Due to the limited level, there may be some translation errors and content errors. Criticism and correction are welcome. YouTube source: Learn Go Programming - Golang Tutorial for ...

Posted by seco on Fri, 07 Jan 2022 04:43:56 +0100

Filter and its function

1. What is a filter? The filter, as its name implies, is a kind of thing that plays the role of filtering. However, compared with the filter in real life, the filter here filters the web resources accessed by the client, which can also be understood as a preprocessing means. After intercepting the resources, Filter the impurities (defined by t ...

Posted by Doug G on Sun, 02 Jan 2022 10:46:36 +0100

I wrote an IDEA open source plug-in, vo2dto one click to generate object transformation

Header explosion, po2vo, vo2do, do2dto, a bunch of object attributes, take them out and stuff them in. If it were not for the layered anti-corrosion under the DDD architecture, I really want to connect it. That's BeanUtils Copyproperties , in fact, there are not only this method but also 12 similar methods for object conversion, but overa ...

Posted by Vorotaev on Fri, 31 Dec 2021 07:08:01 +0100

Java random Prim algorithm and A * algorithm produce random mazes

Procedure requirements: 1. Randomly generate maze map The maze map needs to be randomly generated in the game and Java util. Random class uses the random number generation method provided by random class to randomly generate obstacles, paths or rewards. Maze map is represented and stored by two-dimensional array. 2. Judge whether the player ...

Posted by bhawap on Mon, 27 Dec 2021 14:04:11 +0100

Maven tutorial installation configuration and configuration in idea use maven

Use of Maven tools Enter the official website to download Maven – Download Apache Maven Click download on the right to download Link, the second is windows download Download the compressed package to any location for decompression. My location here is under the directory file on disk D D:\Java\Maven\apache-maven-3.8.2 Then configure th ...

Posted by trock74 on Wed, 22 Dec 2021 05:16:15 +0100

hadoop HDFS folder creation, file upload, file download, folder deletion, file renaming, file details, file type judgment (folder or file)

Absrtact: This article mainly introduces the use of the basic api of hadoop hdfs. Including Windows side dependency configuration and Maven dependency configuration. The last is the actual operation, including: obtaining the remote hadoop hdfs connection and a series of operations on it, including; Folder creation, file upload, file download, f ...

Posted by The_Walrus on Thu, 09 Dec 2021 05:10:08 +0100

POI - simple reading and writing Excel

Official website address: https://poi.apache.org/ Basic functions: HSSF - provides the ability to read and write documents in Microsoft Excel format. (version 2003, can only store 65536 rows of data at most)XSSF - provides the ability to read and write documents in Microsoft Excel OOXML format. (2007 edition, unlimited data can be stored) 1. ...

Posted by bentobenji on Tue, 07 Dec 2021 12:31:00 +0100

Introduction to multithreading

1, Concept 1. Concurrency and parallelism Parallel: multiple tasks are executed simultaneously at the same time point. efficientConcurrency: multiple tasks are executed at the same time. Low efficiency, macro simultaneous execution, micro time-sharing execution. 2. Process and thread Process: the running application in memory, whic ...

Posted by cavedave on Mon, 29 Nov 2021 14:33:44 +0100

Network programming AIO

Introduction to AIO model AIO (Asynchronous I/O) asynchronous non blocking model supports AIO since java jdk.17. The AIO model needs the support of the operating system. The biggest feature of AIO is asynchronous capability, which works on socket and I/O. Different from the NIO model, a read-write operation is taken as an example, just ...

Posted by Simon180 on Thu, 25 Nov 2021 21:20:41 +0100