摘要:
max() 1 public static int max(int a, int b) { 2 return Math.max(a, b); 3 } 4 5 6 /** 7 *Math 的max方法 8 */ 9 public static int max(int a, int b) { 10 re 阅读全文
摘要:
Object类有以下几个方法 equals() 1 /** 2 * Indicates whether some other object is "equal to" this one. 3 * <p> 4 * The {@code equals} method implements an equi 阅读全文
摘要:
String类有两个私有的变量,字符数组value,和整型变量hash(默认为0)。 String的构造器会对value进行赋值,有时也对hash进行赋值。 1 /** 2 * Initializes a newly created {@code String} object so that it 阅读全文