Xiaobai's JAVA learning notes (12) -- GUI (3) internal classes and multiple monitors

1, Inner class 1. A class is nested inside another class, and its definition is completely enclosed by an external class, which is called an internal class 2. Internal classes can use all methods and variables of external classes, including those marked with private 3. An inner class can only access the contents of the outer ...

Posted on Tue, 31 Dec 2019 08:22:16 -0800 by farzal

PipedReader of Java IO class library

1, About PipedReader PipedReader inherits from the Reader class and is a character pipeline input stream. Its function is very similar to PipedInputStream, which is a pipeline byte output stream. By binding PipedWriter to a pipeline output stream, PipedReader realizes the similar pipeline function, realizing the inter thread communication. A t ...

Posted on Tue, 31 Dec 2019 07:44:36 -0800 by june82

spring data jpa query some fields

spring data jpa query some fields The first method: convert when using model query First, create a model, write the fields you want to query, and then write the constructor. This step is very important, because this constructor will be called during spring jpa conversion public class MyModel implements Serializable { private String userNam ...

Posted on Tue, 31 Dec 2019 06:09:06 -0800 by StefanRSA

socket programming evolution

    1. A single threaded server can only process one request at a time import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; public class Server { public static void main(String[] args) throws IOException{ try(ServerSocket serverSocket = new ServerSocket(6666)){ ...

Posted on Tue, 31 Dec 2019 04:29:56 -0800 by mjm7867

About login page login with mobile phone verification code

I'm working on a project these two days. The login page intends to log in with my mobile phone verification code. Need to use jQuery and ajax Used to verify the mobile number input box Judge the following conditions respectively and make pop-up warning 1: Empty or not 2: 11 digits or not 3: Is it the correct mobile number ...

Posted on Tue, 31 Dec 2019 03:22:23 -0800 by Ratzzak

js and java determine whether a string or array contains an element

1, js determines whether a string contains an element 1. The indexof method is used to check whether an element is included. The method returns the first occurrence of a specified string value in the string. If the string value to retrieve does not appear, the method returns - 1. var str = "123"; if(str.indexOf("3") != -1){/ ...

Posted on Tue, 31 Dec 2019 00:26:48 -0800 by atzi

Automatic deployment based on gitlab and jenkins

GitLab is a code repository for managing code. Jenkins is an automated server that can run a variety of automated build, test, or deployment tasks. So the combination of the two can enable developers to submit code to GitLab, and Jenkins can automatically run test, build and deployment tasks at a certain frequency, so as to ...

Posted on Tue, 31 Dec 2019 00:08:49 -0800 by andyjimmy

Setting up maven private server Nexus in Linux Environment

1: Setting up environment and installation 1:Linux environment (centos7) Linux VM_0_10_centos 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Environment ->Tencent cloud 2:Java environment installation 1: Download jdk1.8: http://www.oracle.com/technetwork/java/javase/do ...

Posted on Mon, 30 Dec 2019 23:18:01 -0800 by kristo5747

On JVM memory structure heap

5.1 definition Heap reactor With the new keyword, heap memory is used when creating objects Thread sharing, objects in the heap need to consider thread safety There is garbage collection mechanism Java Heap is the largest piece of memory managed by Java virtual machine, also known as "GC heap". It is a memory area shar ...

Posted on Mon, 30 Dec 2019 21:01:39 -0800 by Barkord

IPFS build & cluster

Download go IPFs wget https://github.com/ipfs/go-ipfs/releases/download/v0.4.17/go-ipfs_v0.4.17_linux-amd64.tar.gz   Decompression [root@blockchain42 ipfs]# tar -zxvf go-ipfs_v0.4.17_linux-amd64.tar.gz   go-ipfs/build-loggo-ipfs/install.shgo-ipfs/ipfs   go-ipfs/LICENSE   go-ipfs/README.md Execute insatll.sh [root@blockchain42ipfs]# ...

Posted on Mon, 30 Dec 2019 13:09:36 -0800 by yddib