03 2021 档案

摘要:1 package leetcode; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 public class N3 { 7 public static void main(String[] args) { 8 String 阅读全文
posted @ 2021-03-10 22:42 TRAODM 阅读(47) 评论(0) 推荐(0)
摘要:1 package demo030302; 2 //方法二,三个窗口卖票 3 public class SalesTickets { 4 public static void main(String[] args) { 5 Sales sales = new Sales(); 6 Thread t 阅读全文
posted @ 2021-03-03 21:43 TRAODM 阅读(127) 评论(0) 推荐(0)
摘要:1 package demo030301; 2 //多线程练习,创建三个窗口卖票,总票数为100 3 public class SaleTickets { 4 public static void main(String[] args) { 5 Windows w1 = new Windows(); 阅读全文
posted @ 2021-03-03 20:51 TRAODM 阅读(119) 评论(0) 推荐(0)
摘要:1 package demo030102; 2 3 import java.util.Arrays; 4 5 public class HeapSort { 6 public static void main(String[] args) { 7 int[] arr = new int[]{22, 阅读全文
posted @ 2021-03-01 21:04 TRAODM 阅读(59) 评论(0) 推荐(0)
摘要:1 package demo030101; 2 3 public class ArrayBinaryTree { 4 int[] data; 5 //传入一个数组,并看成是二叉树 6 public ArrayBinaryTree(int[] data){ 7 this.data=data; 8 } 阅读全文
posted @ 2021-03-01 20:08 TRAODM 阅读(79) 评论(0) 推荐(0)
摘要:递归! 阅读全文
posted @ 2021-03-01 19:08 TRAODM 阅读(125) 评论(0) 推荐(0)