20165210 Java third experimental report

20165210 Experiment 2 Agile Development and XP Practice

1. Agile Development and XP Practice-1

Experimental requirements:
http://www.cnblogs.com/rocedu/p/4795776.html , replace the content of Eclipse with IDEA

Refer to http://www.cnblogs.com/rocedu/p/6371315.html#SECCODESTANDARD to install the alibaba plugin to solve the specification problem in the code.

Use the tool (Code->Reformate Code) in IDEA to reformat the following code, and then study the Code menu to find a function that makes you feel the best. Submit a screenshot and add your student ID watermark.

public class CodeStandard {
public static void main(String [] args){
StringBuffer buffer = new StringBuffer();
buffer.append('S');
buffer.append("tringBuffer");
System.out.println(buffer.charAt(1));
System.out.println(buffer.capacity());
System.out.println(buffer.indexOf("tring"));
System.out.println("buffer = " + buffer.toString());
if(buffer.capacity()<20)
buffer.append("1234567");
for(int i=0; i<buffer.length();i++)
System.out.println(buffer.charAt(i));
}
}
实验截图:

2. Agile development and XP practice-2

Experiment requirements:
Add your learning partner to your own project on the code cloud. After confirming that your partner's project has been added to your own, download the Complex code of partner experiment 2, add no less than three JUnit unit test cases, and git add after the test is successful. .; git commit -m "Add content to your student number"; git push;

Submit a screenshot of the partner project git log, including the above git commit information, and add your own student number watermark information.
Experimental screenshot:

3. Agile Development and XP Practice-3

Experimental requirements:
http://www.cnblogs.com/rocedu/p/4795776.html , replace the content of Eclipse with IDEA

Complete the refactoring exercises, download your partner's code, perform at least three refactorings, submit a screenshot of the refactored code, and add your own student ID watermark. Submit your partner's code cloud project link.
Experimental screenshot:
https://gitee.com/BESTI-IS-JAVA-2018/20165214ZWY/blob/master/src/NO.5/Example5_10.java

4. Agile Development and XP Practice-4

Experiment requirements:
Refer to http://www.cnblogs.com/rocedu/p/6683948.html to complete the learning of Java cryptography related content in pairs, combined with refactoring, git, and code standards .

Submit the learning outcome code cloud link and representative results screenshots, with a student ID watermark.
Experimental screenshot:
https://gitee.com/LiuLuJin/teamwork


Code link:

https://gitee.com/BESTI-IS-JAVA-2018/20165210lyk/tree/master/20165210exp3

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325207702&siteId=291194637