Day 17 assemble
Requirements: use the array to store 3 student information, and traverse the array to obtain each student information
public class Student {
private String name;
private int age;
public Student(){
}
public Student(String name, int age) {
this.name = name;
this.age = age;
}
public String getName() {
...
Added by kanikilu on Mon, 14 Feb 2022 15:05:24 +0200
Express routing, express middleware, using express write interface
(1) Express routing
1, Concept of routing
1. What is routing
2. Real life routing
3. Routing in Express
4. Examples of routing in Express
5. Route matching process
II. Use of routing
1. Simplest usage (rarely used)
const express = require('express')
const app = express()
// Mount routing
app.get('/' , (req,res )=> {
...
Added by Bounty on Sun, 13 Feb 2022 16:32:50 +0200
Built in object creation event
<!-- String charAt(idx) returns the char value at the specified index. int indexOf(int ch, int fromIndex) returns the index at the first occurrence of the specified character in this string, and searches from the specified index. String substring(int beginIndex) returns a new string, which is a substring of this string. substr(m,n ...
Added by GoncaloF on Fri, 11 Feb 2022 17:30:24 +0200
The fried golden flower game developed by python is coming, and it's no longer boring~
Hello ~ Hello, I'm Cha Cha! Everyone should have started work today. Many students spend the new year on the card table. Ha ha, so today we will bring you a little game of golden flowers developed in Python, which can be learned and played. Interesting learning is right! Come and have a look! Let's first look at the basic rules of the game.
Fr ...
Added by Dilbert137 on Tue, 08 Feb 2022 17:28:17 +0200
Notes to Java core technology Volume 1 Chapter 6 interface and internal classes anonymous internal classes and static internal classes
6.4.6 anonymous inner class
Suppose that when using variables, you can directly new a new object without naming it again. This local inner class that cannot afford the name of a class is called an anonymous inner class.
The writing method is: new interface name () {overwrite method () {method content}}
public class Main ...
Added by hbalagh on Mon, 07 Feb 2022 00:00:25 +0200
In depth JavaScript learning notes: this point of function
In depth JavaScript learning notes: this point of function
Reference: Teacher Wang Hongyuan's in-depth JavaScript course
Why do you need this?
In common programming languages, almost all have this keyword (self is used in Objective-C), but this in JavaScript is different from this in common object-oriented languages:
In common object-orie ...
Added by mlewis on Fri, 04 Feb 2022 08:41:13 +0200
[Day5] ES5 (higher order function, anonymous function, scope, closure)
Date: February 4
1. Higher order function
What is a Function: a Function is a data type [Function] Function that can be defined by an expression
Higher order function: since a function is of a type and can be used as a parameter or return value of another function, the function is called a higher-order function (simply a function calling fu ...
Added by jwer78 on Fri, 04 Feb 2022 06:59:02 +0200
Detailed explanation of expression (csp-j 2021 expr)
First move the topic from the valley of Los Angeles
Title Description
Little C is keen on learning mathematical logic. One day, he found a special logical expression. In this logical expression, all operands are variables, and their values can only be , 0 , or , 1. The operation is carried out from left to right. If there are parentheses i ...
Added by mpb001 on Wed, 02 Feb 2022 06:04:53 +0200
How do I start anything NET Core Web API project
catalogue
introduce
step
Create a Web API project in Visual Studio
Option 1
Option 2
IIS configuration
Configure Swashbuckle/Swagger
Add Swashbuckle
Add newtonsoft Json
Add exception service
Set CORS policy
Add authentication service
Read Appsettings json
(optional) add database context
Optionally, add RestSharp
(optional) fo ...
Added by nmpku on Mon, 31 Jan 2022 21:05:51 +0200
P1080 [NOIP2012 improvement group] king game
Title Description
On the national day of HH, the king invited NN ministers to play a prize game. First, he asked each minister to write an integer on his left and right hand, and the king himself wrote an integer on his left and right hand. Then let the}nn ministers line up and the king stand at the front of the line. After lining up, all mini ...
Added by dirty_n4ppy on Thu, 27 Jan 2022 22:22:50 +0200