Niu Ke net java basic knowledge brush question record-01

Assume Base b = new Derived(); What is the output result after calling and executing b.methodOne()? public class Base { public void methodOne() { System.out.print("A"); // 3. Output A methodTwo(); // 4. The method two method overridden by the subclass is called } public void methodTwo() { System.out.prin ...

Added by dyluck on Tue, 22 Feb 2022 18:10:18 +0200

[Java classes and objects]

class package com.yuzhenc.oop; /** * @author: yuzhenc * @date: 2022-02-22 20:29:28 * @desc: com.yuzhenc.oop * @version: 1.0 */ public class Person { //Property, also known as member variable, is placed outside the method in the class String name;//name int age;//Age double height;//height double weight;//weight / ...

Added by madan koshti on Tue, 22 Feb 2022 16:49:23 +0200

Fundamentals of genetic algorithm

GA related basic knowledge (1) Application of genetic algorithm Function optimization (classical application field of genetic algorithm); Combinatorial optimization (practice has proved that genetic algorithm is very effective for NP complete problems in combinatorial optimization, such as 0-1 knapsack problem, TSP, etc.); Auto-Control; Robot ...

Added by xengvang on Tue, 22 Feb 2022 15:08:59 +0200

Python string common operations

1. String separation 1.1 split() method Function: the split() method starts from the left side of the string. The default split character is the space character, and the return value is the list. For example: create a string str_1; Right str_1 and use the split() method str_1 = 'a str of practice' print(str_1.split()) The operation results ...

Added by atl_andy on Tue, 22 Feb 2022 14:49:30 +0200

C language advanced 13 advanced pointer

13.1 pointer to pointer example: int i; int *pi; int **ppi; printf( "%d\n", ppi ); //If ppi is an automatic variable, it is not initialized and will allow a random value. If it is a static variable, print 0 //Before ppi is initialized, the contents of its storage unit are unknown printf( "%d\n", &ppi ); //Print out the address ...

Added by zhopa on Tue, 22 Feb 2022 14:24:34 +0200

[ruoyi Vue plus] learning note 15 - adding queue data to Redisson Delayed Queue (Redisson source code + Lua script)

preface During this time, I was making up the video of Spring Cloud, which was originally intended to prepare for learning [ruoyi cloud plus]. Then I was urged by the lion leader in the group today (covering my face). The leader said that we can analyze the new function of [ruoyi Vue plus] version 4.0, Redisson distributed queue. In fact, ...

Added by SapAuthor on Tue, 22 Feb 2022 13:27:39 +0200

[note] nesting of python: dictionary list, store list in dictionary, store dictionary in dictionary

1, Nesting of python Sometimes you need to store a series of dictionaries in a list or a list as a value in a dictionary, which is called nesting. We can nest dictionaries in lists, lists in dictionaries, and even dictionaries in dictionaries. 2, Dictionary list Remember our previous example of aliens, if dictionary alien_0 contains all ...

Added by leony on Tue, 22 Feb 2022 12:55:02 +0200

[introduction to raspberry pie] Experiment 2 Python programming basis

Experimental principle Python programs can run / execute in two different ways. Method 1: Open IDLE3 through the desktop icon or start menuIDE loading may take some timeAfter the IDE is loaded, a Python shell window is displayedIn the Python shell window, type the following command print("Hello World")Press enter and you will see Hello Wo ...

Added by Beavis2084 on Tue, 22 Feb 2022 10:49:19 +0200

SPI implementation project pluggable use project additional components practice

Recently, there is a project that needs to store file content. Customers do not use the default object storage of the product, and the product does not want to integrate customized code into the product. Therefore, it needs to be designed as a pluggable plug-in to contact SPI and SpringBoot Starter for the first time. The two are very similar a ...

Added by SoN9ne on Tue, 22 Feb 2022 09:32:16 +0200

Arthas command parsing (watch/tt/sc)

Arthas It is an open-source Java diagnostic tool of Alibaba. Arthas supports JDK 6 +, Linux/Mac/Windows, adopts command-line interaction mode, and provides rich Tab automatic completion functions to further facilitate problem location and diagnosis. Arthas 3.0 uses OGNL expression evaluation library. See OGNL expression official website ...

Added by hasitha on Tue, 22 Feb 2022 06:48:10 +0200