摘要:
package zxd.work622; public class TestAccount extends Thread { private Account a = new Account(); public void run() { for (int i = 0; i < 10; i++) { this.makeWithDraw(10... 阅读全文
摘要:
package zxd.work622; public class Text2 { public static void main(String[] args) { /*进程:一种正在运行的程序,有自己的地址空间:特点,动态性,并发性,独立性 * 一个进程中同时运行多个线程,用来完成不同的工作,称之为多线程; * 一个进程里的多个线程可以共享; *... 阅读全文
摘要:
package zxd.work622; public class Text1 { public static void main(String[] args) { /* * 递归求和:2+4+6+8+...+100任给一个数,求1到次数的和 */ System.out.println(sum(0)); } public static int sum(int m){ ... 阅读全文
摘要:
阅读全文