20145234 Huangfei "Java Programming" experiment three-agile development and XP practice

Source: Internet
Author: User

1 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 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

Add your own learning partner to your project in the code cloud, confirm that your partner's project is on your own, download the complex code for your partner experiment two, add not less than three JUnit unit test cases, and then git add after the test is successful. Git commit-m "Learn to add content"; git push;

Submit a partner project git log, containing the above git commit information, and add your own watermark information.

3

Complete the refactoring exercise, download your partner's code, make at least three refactoring, commit the refactoring code, and add your own number watermark.

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.

20145234 Huangfei "Java Programming" experiment three-agile development and XP practice

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.