JavaSE learning notes-Day12

1, Introduction of containers and generics No matter what language it is, it is necessary to deal with data in the process of developing programs. In order to better accommodate these data, we introduced the concept of array in the previous study, which is indeed a good way to accommodate data, but ar ...

Posted by yanjchan on Wed, 12 Feb 2020 13:10:04 +0100

Java agent learning summary

Preface Recently, because of the company's needs, we need to understand the java probe, find information on the Internet, and find a lot of data, but there are too few examples. Some of them paste the company code directly, which is too complex, and some of them are particularly simple, which is not what I want. I want an example like this: The ...

Posted by mohamdally on Sat, 01 Feb 2020 11:42:40 +0100

NO.1 foundation drawing

NO.1 foundation drawing Zero etching🔗 HenCoder Preface Get the xp value corresponding to dp public static float dp2px(int dp){ return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,dp, Resources.getSystem().getDisplayMetrics()); } Rotation direction Path.Direction.CW; //Clock ...

Posted by nosheep on Mon, 27 Jan 2020 15:00:18 +0100

Java implementation of Chinese word frequency statistics

Yesterday, there was a demand for Chinese word frequency statistics. After Baidu's visit, it found a lot of party articles with titles, which were seriously inconsistent with the content. Here is a simple record of its own implementation process!   Different from the word frequency statistics of English words, the difficulty of Chinese lies i ...

Posted by markjia on Mon, 30 Dec 2019 16:59:07 +0100

JavaScript dynamically gets server time

JavaScript dynamically gets server time Many Java Web applications need to obtain server time dynamically, such as the company's attendance system, ticket booking system and so on. The renderings are as follows: How to achieve it? Preparation Eclipse creates a new Dynamic Web Project, in this case, ShowTime Remember to ...

Posted by Quilmes on Tue, 24 Dec 2019 16:38:23 +0100

A small problem in executing scala program with JAVA command line

Example of scala accessing MySQL database: import java.sql.{Connection,ResultSet,DriverManager} import scala.util.control.Exception.Catch //import java.sql.DriverManager object DataAnalysisTest { def main(args: Array[String]): Unit = { if(args.length!=3) { println("Parameter error!") println("usage metho ...

Posted by jdimino on Mon, 16 Dec 2019 19:38:07 +0100

Java adds, extracts, replaces, and deletes PDF pictures

(1) Introduction PDF is used in many operating platforms with high quality and is ideal for archiving and sharing useful information.This next article describes adding, extracting, deleting, and replacing pictures in PDF documents using Java.The article is roughly structured as follows: Add Pictures to PDF Extract pictures from PDF Replace ...

Posted by wayang_mbeling on Thu, 07 Nov 2019 15:49:43 +0100

Tutorial of using ebean

Since 2018, we have been accumulating server related technologies. In the company, from a client programmer, he actively requests to do server tasks, hoping to take the opportunity to improve his application ability of server technology. In private, we have been studying the related technologies of vert.x. however, the company uses php + yii so ...

Posted by rheroux on Sat, 02 Nov 2019 22:07:18 +0100

Face search for AI face recognition

This document will use the JD cloud AI SDK to practice the face search function in face recognition, mainly involving group creation / deletion, group list acquisition, face creation / deletion, and face search. The final effect of this operation is: create a face database, take a picture to search the most similar one in the face database, a ...

Posted by Bennettman on Fri, 18 Oct 2019 06:50:14 +0200

Java WebSocketClient Does Local Data Receiving and Processing Service Program

Client is the basic class WebSocketClientTest is the main method entry. maven address, other packages may need to be screenshots, etc. <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.3.0</version> &l ...

Posted by MikeyNoedel on Thu, 03 Oct 2019 13:22:07 +0200