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