摘要:
public class Bubble { public static void main(String[] args) { int[] arr = {1, 45, 33, 77, 22}; for (int j = 0; j < arr.length - 1; j++) { for (int i 阅读全文
posted @ 2022-01-26 23:49
香草ovo
阅读(47)
评论(0)
推荐(0)
摘要:
toString方法 equals方法 this就是t1,obj就是t2,可见仍然是在比较两者的地址值 因此需要重写equals方法 阅读全文
posted @ 2022-01-26 23:04
香草ovo
阅读(13)
评论(0)
推荐(0)
摘要:
内部类可以调用外部类的变量 public class Outer { int a = 10; private class Inner { public void show() { System.out.println(a); } } public void method(){ Inner i = n 阅读全文
posted @ 2022-01-26 17:56
香草ovo
阅读(26)
评论(0)
推荐(0)
摘要:
Student类 public class Studnet { private String sid; private String name; private String age; private String address; public Studnet() {} public Studne 阅读全文
posted @ 2022-01-26 17:39
香草ovo
阅读(41)
评论(0)
推荐(0)

浙公网安备 33010602011771号