Simple algorithm exercise

[1] Two-point distance describe Enter two-point coordinates (X1,Y1), (X2,Y2) (0<=x1, x2, y1, y2<=1000), calculate and output the distance between the two points. input The first line enters an integer n (0<n<=1000) to indicate that there are N sets of test data;Each group then takes u ...

Posted by rebelo on Sun, 23 Feb 2020 04:35:30 +0100

I/O stream of Java -- file input / output stream

FileInputStream and FileOutputStream classes The FileInputStream and FileOutputStream classes are used to manipulate disk files. FileInputStream, FileOutputStream. FileInputStream and FileOutputStream classes can read and write files. First create the file object public class Study2 { public static ...

Posted by zander213 on Sat, 22 Feb 2020 16:32:51 +0100

Object oriented of PYTHON (basic)

1, Create classes and objects Object-oriented programming is a kind of programming method. The landing of this programming method needs to use "class" and "object". Therefore, object-oriented programming is actually the use of "class" and "object". Class is a te ...

Posted by mattonline on Sat, 22 Feb 2020 12:45:55 +0100

Learn Java EE day 15 notes

Learn Java EE day 15 8.6.4 upward transformation (packing) 8.6.5 downward transformation (unpacking) 8.6.6 type conversion exception 8.6.7 instanceof keyword 8.7 summary 9. Three modifiers 9.1 abstract 9.1.1 what is abstraction 9.1.2 abstract class 9.1.3 the role of abstract classes 9.1.4 abstr ...

Posted by psych0 on Sat, 22 Feb 2020 12:41:28 +0100

The programming problem of Niuke network: the solution of jumping stone board

Title Description Xiaoyi came to a stone road, each stone from 1 next to the number: 1, 2, 3 This flagstone road can only advance according to special rules: for the flagstone whose number is k, Xiaoyi can only jump forward one divisor step of K (excluding 1 and K) at a time, that is, jump to the posi ...

Posted by alcapone on Sat, 22 Feb 2020 09:01:53 +0100

Summary of the third week of Java basic learning

1, Summary of knowledge points 1. Object oriented 2. modifiers 1. Write a worker class and create multiple worker objects. 1. Add three private properties to the worker class: 1). Sting type name, indicating the name of the person. 2). int type age, indicating the age of the person. 3). double type sala ...

Posted by arbab on Sat, 22 Feb 2020 08:33:36 +0100

Variable passing of Reactor asynchronous thread

order This paper mainly studies the variable transfer of reactor asynchronous thread The problem of threadlocal In the traditional request / response synchronization mode, it is very convenient to use threadlocal to pass context variables. It can save adding common variables to each method parameter, such as the current login user. ...

Posted by gamesmad on Sat, 22 Feb 2020 08:24:42 +0100

Java -- book lending system

** Project requirements: ** Develop a book borrowing system for the book reading room, which can store up to 50 books and realize the management of books. The book borrowing system has the following functions: 1. View Book Information Select View function in the menu to display relevant information of ...

Posted by .evo. on Sat, 22 Feb 2020 07:25:20 +0100

Kotlin coding specification used by BAT

The Kotlin coding specification used in a big BAT factory has added a lot of contents on the basis of the official Kotlin specification, which is of great reference value. Code organization [mandatory] in a mixed java source project, the Kotlin source file should be located in the same root director ...

Posted by thryb on Sat, 22 Feb 2020 06:06:07 +0100

Summary of problems encountered in using external tomcat in SpringBoot

Preface Spring boot uses the embedded Servlet container by default. When we use external Servlet containers, we will encounter various problems. Environment used: IDEA + apache-tomcat-7.0.91 1.springboot starts tomcat and reports error java.lang.NoClassDefFoundError: javax/el/ELManager Caused by: or ...

Posted by KC8Alen on Sat, 22 Feb 2020 04:57:43 +0100