摘要:
public class test { public static void main(String[] args) { int a = 20; int b = 30; int c = a++; //先赋值再相加,c=20 a = 21 System.out.println(c); //20 Sys 阅读全文
摘要:
1 方式一:创建Thread的子类对象 1-1 创建一个线程,继承 Thread,重写run方法 public class MyThread extends Thread{ public MyThread(String name){ super(name); } @Override public v 阅读全文
摘要:
Node类 //链表结构 public class Node { //数据 public long data; //指针,连接下个结点 public Node next; public Node(long value){ this.data=value; } public void display( 阅读全文