摘要:
1,空白finalpackage example;class People{ private int i; People(int ii){ i=ii; }}public class Test{ private final int i=0; private final int j; //空白final 阅读全文
摘要:
矩阵只有当左边矩阵的列数等于右边矩阵的行数时,它们才可以相乘, 乘积矩阵的行数等于左边矩阵的行数,乘积矩阵的列数等于右边矩阵的列数 即A矩阵m*n,B矩阵n*p,C矩阵m*p; package example; public class Test{ public static void main(S 阅读全文
摘要:
JDK5.0之前 int i = 1; //基本数据类型int Integer j = new Integer(i);//手动装箱 int k = j.intValue();//手动拆箱 JDK5.0之后 Integer i = 1;//自动装箱 int j = i;//自动拆箱 Integer i 阅读全文
摘要:
package example; public class Test { public static void main(String[] args) { int i=10; Integer q=new Integer(10); System.out.println(i==q); } } true 阅读全文