Experimental requirements
Experiment 3-1
Agile development and XP practice http://www.cnblogs.com/rocedu/p/4795776.html , Eclipse content is replaced with IDEA
reference http://www.cnblogs.com/rocedu/p/6371315.html#SECCODESTANDARD installation alibaba plugin to solve specification problems in 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));
}
}
operation result
I think the best function to use is Reformate Code, which can help us standardize the code format and is very convenient to use.
Experiment 3-2
Add your learning partner to your own project on the code cloud. After confirming that the partner's project is added to yourself, download the Complex code of partner experiment 2, add no less than three JUnit unit test cases, and git add .; git after the test is successful commit -m "Add content to your student number"; git push;
submit a screenshot of the git log of the partner project, including the above git commit information, and add your own student number watermark information.
operation result
Experiment 3-3
Experiment 3 Agile Development and XP Practice http://www.cnblogs.com/rocedu/p/4795776.html , the content of Eclipse is replaced 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.
operation result
Experiment 3-4
Refer to http://www.cnblogs.com/rocedu/p/6683948.html to complete the learning of Java cryptography related content in pairs, combining refactoring, git, and code standards .
Submit the learning outcome code cloud link and representative results screenshots, with a student ID watermark.
- Experimental impression: Through this experiment, I have a deeper understanding of other aspects of java, and a deeper understanding of IDEA, especially the content of refactoring and cryptography, which allows us to connect with classroom learning and practice.
step | time consuming | percentage |
---|---|---|
demand analysis | 10 minutes | 10% |
design | 40 minutes | 40% |
Code | 40 minutes | 40% |
test | 20 minutes | 20% |