This article is selected from: IBM DW China does not need to appear in Javadoc, can also be included here. ● Package / Imports Package Row Before the IMPORT row, the standard package name in the Import is previously in the local package name and arranged in alphabetical order. If the IMPORT line contains different subdirectory in the same package, you should use * to process. Package hotlava.net.stats; import java.io. *; Import java.util.observable; import hotlava.util.Application; here java.io. * is used instead of InputStream and OutputStream. ● Class next is the annotation of the class, usually used to interpret the class. / ** * a class representing a set of packet and byte counters * it is observable to allow it to be watch Extends and Implements: Public Class CountersEt Extends Observable Implements Cloneable ● Class Fields Next is a member variable of class: / ** * packet counter * / protected int [] packets; member variables for publicococ (javadoc). Member variables defined by Proceted, Private and Package If the name meaning is clear, you can not comment. ● Access method Next is the method of access to class variables. It is just simple to get values to assign values to the class variable, you can simply write on one line. / ** * Get the counters * @return an array containing the statistical data This array has been * freshly allocated and can be modified by the caller * / public int [] getPackets () {return copyArray (packets, offset)..; } public int [] getBytes () {return (bytes, offset);} public int [] getpackets () {return packets;} public void setpackets (int [] packets) {this.packets = packets;} other method Don't write on a line.