Write a greedy snake
1. Data center class
Define picture URL
Icons of head up, down, left and right, body, object and banner
2. Game startup class
The main method starts the game
Define main window
Set the main window size value, visible, size, and close events
Posted on Fri, 03 Dec 2021 21:00:44 -0500 by rdbdba
1, Concept of distributed transaction
1. What is a transaction
A transaction can be regarded as a big activity. It consists of different small activities. These activities either succeed or fail.
2. Local affairs
Four characteristics of database transactions ACID:
A(Atomic): Atomicity ， All operations constituting a transact ...
Posted on Fri, 03 Dec 2021 19:07:35 -0500 by bache
Current brain map:
1. Preface: on algorithm color change? Duck, no!
I wonder if you have this feeling? When it comes to algorithms, the first reaction is: it's too difficult, I won't! I had this feeling at the beginning, but after learning patiently, I found that the algorithm was not so complex. At least gettin ...
Posted on Fri, 03 Dec 2021 18:49:34 -0500 by infomamun
1. Key attributes
/** This property is very interesting. A synchronous Integer stores two values, with a maximum of 3 bits to place the thread pool state; The remaining 29 places the number of workers, so there can be at most 2 ^ 29-1 workers */
private final AtomicInteger ctl = new AtomicInteger(ctlOf(RUNNING, 0));
private static final int CO ...
Posted on Fri, 03 Dec 2021 18:40:40 -0500 by ElkySS
Setting up Jmeter environment
Set up a java environment first 1. Official Web http://www.oracle.com/technetwork/java/javase/downloads/index.html Download 2. Setting system variables, The variable name is JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131 (Installed Path Directory) Set Path variable,%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin Variable na ...
Posted on Fri, 03 Dec 2021 18:11:26 -0500 by Kryllster
Spring Boot with MyBatis and JPA
What is Spring Boot
Ability to create stand-alone Spring Boot applications Embed Tomcat,Jetty Undertow and don't need to deploy them Provides "starters" poms to simplify Maven configuration
Spring brings a lot of magic into ...
Dissemination and exchange of information, data exchange and communication
What you want to achieve:
How to accurately locate a host on the network: ip:port locate a resource on this machineFound this host, how to transfer data
javaweb: Web programming B/S
Network programming: TCP/IP C/S
1.2 ele ...
Posted on Fri, 03 Dec 2021 17:20:00 -0500 by collamack
Java method 02 -- method definition and calling, method overloading, command line parameter passing, variable parameters
Definition of method
Java methods are similar to functions in other languages. They are code fragments used to complete specific functions. Generally, defining a method includes the following syntax:
Method contains a met ...
Posted on Fri, 03 Dec 2021 16:50:14 -0500 by gj6kings
1) Introduction to RESTful Definition: RESTful is a design style and development method of network applications. It is based on HTTP and can be defined in XML format or JSON format.
1. Each URI is a unique resource identifier;
2. The client uses GET, POST, PUT and DELETE verbs to operate the server resources: GET is used to ...
Posted on Fri, 03 Dec 2021 16:00:34 -0500 by keyur.delhi