Array summary (open)

How to initialize an array package Arrays; import java.util.*; class Person{} public class ArrayOptions { public static void main(String[] args) { /** * object array */ Person[] p1;//Local variables without initialization are not allowed before initialization. //1, Person[] p2=new Pe ...

Posted by keeB on Sat, 26 Oct 2019 22:09:09 +0200

Self made text classification

These days, the company needs to do text classification, read some articles, various machine learning, neural network, do not understand. I have done a simple text classification function with the combination of stuttering and segmentation, which is OK in general. Operation result: It's written by mysel ...

Posted by php1999 on Sat, 26 Oct 2019 13:22:33 +0200

P4RUNTIME GRPC experiment

Read the test documents: PI/proto/demo_grpc/README.md Environmental configuration In this experiment, grpc server opened a web service on port 8888, while my experiment was run in a container on the server, so I couldn't use the browser. So add a port mapping to the container, mapping 18888 to 8888. #Stop our container docker stop p4-rt #Buildi ...

Posted by ramblix on Tue, 15 Oct 2019 16:25:51 +0200

Data Structure and Algorithms - Sword Finger Offer Series (17) Delete Duplicate Nodes of Link List - Java Implementation

Topic 17: Delete duplicate nodes in a linked list Title Description: How to delete duplicate nodes in a sorted list? Ideas for solving problems: The first step is to determine the parameters of the deletion function, which needs to input the header node of the list to be deleted. The header node ...

Posted by mpharo on Sat, 05 Oct 2019 04:56:00 +0200

java Basic Learning 16 (List)

Collective system:-------------- | Collection singleton set's root interface If a List is a collection class that implements the List interface, it has the characteristics of orderliness and repeatability. The bottom layer of the -------------------- ...

Posted by nethnet on Thu, 29 Aug 2019 07:55:54 +0200

dns parsing tool dig, one of linux's powerful tools

dig command is mainly used to query host address information from dns domain name server. It works the same as NSLOOKUP command, but it outputs more information than nslookup. Install dig redhat Department System yum install -y bind-utils debian Department System apt-get install -y dnsutils Query Sina's dns parsing as follows Di www.sina.com o ...

Posted by 9three on Sun, 11 Aug 2019 17:17:02 +0200

Drawing Android polygraph

The project needs a broken-line map, but does not want to introduce the MPAndroid Chart and HelloCharts framework. Looking at their principles and the content recommended by Wechat, I revised and sorted out the following. Thank you to the original author. The main forms we will achieve are as follows: Before reading this article, I would ...

Posted by Hiccup on Mon, 15 Jul 2019 02:04:43 +0200

Java-the running state of threads

Thread Basic State Diagram: The graph shows the basic state of the thread running: after the thread calls the start() method, it enters the runnable state, switching between runnable and runnable with CPU resource scheduling, and entering the blocking state when it encounters blockage. 1. New, create a new thread 2. Runnable, after callin ...

Posted by susrisha on Sat, 22 Jun 2019 00:55:52 +0200

Promise in-depth understanding

Promise is simply a container containing the results of a future event (usually an asynchronous operation). Syntactically, Promise is an object from which messages for asynchronous operations can be obtained. Promise provides a unified API, and all kinds of asynchronous operations can be handled in the same way. Promise objects have the follo ...

Posted by Fixxer on Sun, 09 Jun 2019 21:48:11 +0200

Notes - Advanced Java Foundation to Face Difficulties 3

Statistical strings for each different character import java.util.*; //Statistics of the number of words per character in a string public class StringDemo{ public static void main(String[] args){ Scanner aScanner = new Scanner(System.in); //Let the user enter a string System.out.println("Please enter the statement you want to co ...

Posted by Nilpez on Thu, 23 May 2019 20:40:41 +0200