title 1:visiting Peking Universitytime limit: 1000mssingle point time limit: 1000msmemory limit: 256MBDescription ming is going-travel for n days and the date of these days can be re Presented by N integers:0, 1, 2, ..., n-1. He plans to spend m consecutive days (2≤m≤n) in
second week
200/300
1/3
15/25
third week
189/489
1/4
20/45
Planned study time: 25 hours
Actual learning time: 20 hours
Improved situation:
This week's learning content is a bit more, need to understand more places, many places the correlation needs to be more detailed analysis, using
20172325 2016-2017-2 "Java Program design" Fourth week study summary textbook study summary1. A further understanding of the definition and properties of classes, objects, declaration variables2. Learn how to write a class and apply it to the required program3. Learn the concepts and differences of formal parameters and arguments4. The role and use of modifiers, such as public and private5. Learn static cla
20165211 2017-2018-2 "Java Program Design" 6th Week Study summary Textbook study summaryThis week, I learned the contents of Chapter 85 or 15 of the book, the following is my main knowledge.The eighth chapter constructs the string object by the common practical class string classConstant objects:,,, "你好" "12.97" "boy" string constants are also objects, so they also have their own references and objects.Stri
20165301 2017-2018-2 "Java program design" The third week study summary textbook Study content Summary fourth chapter: Class and Object
class :
Declaration of class: Class+ class Name
Class Body: Declaration of Member Variable + method (local variable + statement)
Object
Construction method: As with the class name, no type
To create an object:
Declaring objects: Class name +
20155317 Wang Ying 2016-2017-2 "Java Programming" 5th Week study SummarySummary of learning contents of textbookException Handling Collection and map exception inheritance schemas
The wrong object inherits the Java.lang.Throwable class, and Throwable has two subclasses Java.lang.Error with Java.lang.Exceptions.
A.erroe with its subclass instance represents a serious system error.
2017-2018-2 20155319 "Network countermeasure Technology" EXP9:WEB security basic practice ProcessWebgoat Preparation
Download the jar package from GitHub (there are no downloads in the teacher's virtual machine)
Copy to local and use the command to java -jar webgoat-container-7.0.1-war-exec.jar run webgoat, info:starting protocolhandler ["http-bio-8080"] is turned on successfully, you can see that 808
20172333 2017-2018-2 "Java Program Design" 4th Week study summary textbook learning content1. Definition and concept of class structure2. Using instance data to establish the concept of object state3. Describe the effect of the visibility modifier on methods and data4. The use of learning method parameters and return values5. Structure and use of construction methods6. Learn the main steps of object-oriente
-old/some/file linux-new/some/file > my-patch # 比对某个文件After applying patches, the code in Linux-old and Linux-new is the same.cd linux-oldpatch -p1 PS. There's a very useful tool, Diffstat.diffstat -p1 my-patch # 列出补丁所引起的变更的统计(加入或移去的代码行)(2), create patches with GIT commands? Submit modified or new codegit commit -a # 提交所有修改的代码ORgit commit linux-src/some/file.c # 提交某个修改的代码ORgit add linux-src/some/new-file.c # 把新增的文件加入版本库git commit -a # 提交新增的文件
2017-2018-2 20165325 Experiment Report of Java object-oriented programmingFirst, agile development and XP practice-1 Experimental requirements:
Use the tool (Code->reformate code) in idea to reformat the code below, and then look at the Code menu to find a feature that feels best for you. Submit, plus your own study number watermark.
public class Co
20172318 2016-2017-2 "Java program design" the first week to summarize the learning content of learning materialsIn the textbook basic understanding of the operation of the computer system, understand the use of high-level language is the key to mastering good programming, mastered some basic Java commands, learned to compile, run, debug a simple Java programProblems in teaching materials learning and the s
20165237 2017-2018-2 "Java Program Design" 2nd week study summary Textbook study summary1. The first character of an identifier cannot be a number.2. Identifiers cannot be keywords and cannot be true, FALSE, or null.3. The logical type of Boolean has true and false two cases.4. Data precision ranking from large to small:Double>float>long (8 bytes) >int (4 bytes)
Tags: href is exit down add dynamic link library flags first + +One, the load of the executable program 1. preprocessing, compiling, linkinggcc –e –o hello.cpp hello.c //预处理gcc -x cpp-output -S -o hello.s hello.cpp //编译 gcc -x assembler -c hello.s -o hello.o-m32 //汇编gcc -o hello hello.o //链接成可执行文件,使用共享库The gcc -o hello.static hello.o -static statically compiled hello.static put the required items in the C library into the executable file. With
20165206 2017-2018-2 "Java Program Design" 6th Week Study summary Textbook study summary
String class: Can be used directly, there can be no child class.
String object: You can use the string class to declare an object and create an object, for example: string s = new String ("We are students");String t = new String ("We are students");
Strings are collocated: String objects can be collocat
20165318 2017-2018-2 "Java Programming" Eighth Week study summaryDirectory
Problems encountered in learning process and summary
Summary of learning contents of textbook
The 12th Chapter Java multithreading mechanism
Code Hosting
Code statistics
Problems encountered in learning process and summary
Q1: When running the textbook code 12_1, the results are as
; } public String GetClassID () {return classID; } public void Setclassid (String classID) {this.classid=classid; }}Complement:Studentpxgit log:Programming problem Code Hosting(Results of program operation)(1) Use the stack structure to output several items of an, where an=2an-1+2an-2,a1=3,a2=8(2) write a program
20165205 2017-2018-2 "Java program design" Eighth Week study summary textbook study summary
Processes and Threads
A thread is not a process, but behaves like a process, and a thread is a smaller execution unit than a process.
Unlike processes, threading interrupts and restores can be more cost-efficient.
Threads in Java
A major feature of the Java language is the built-in supp
is denied, the latest commit of the current branch is behind its corresponding remote branch", as follows
!Workaround:(1)$ git fetch origin!(2) Ctrl+x(3)$ git push origin masterReference: Update is rejected because the latest commit of your current branch is behind its corresponding remote branch
This week's test topic is not deep understanding of the daemon thread, and then found on the Inte
.
Throw and throws are two different keywords.
Creates a method for constructing a File object: file (string filename), file (string directorypath,string filename), file (file dir,string filename);
The file object calls the method public boolean mkdir () to create a directory that returns true if the creation succeeds, otherwise false.
Public string[] List () returns all files in the directory as a string.
Public file[] Listfiles () returns all files in the directory as a fil
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.