String类中函数:
char charAt(int index);
int compareTo(Object o);
int compareTo(String anotherString);
类中普通属性
采用小驼峰法,例如:
java.io.File 类中属性:
private final transient int prefixLength;
andriod.os.Message 类中属性:
public Messenger replyTo;
public int sendingUid = -1;
类中常量
采用全大写,单词之间以下划线分隔,例如:
andriod.os.Message 类中常量:
/*package*/ static final int FLAG_IN_USE = 1 << 0;
/** If set message is asynchronous */
/*package*/ static final int FLAG_ASYNCHRONOUS = 1 << 1;