- 浏览: 49605 次
- 性别:
- 来自: 北京
最新评论
文章列表
package com.companyname;
public class Sort {
public static void main(String[] args) {
int[] arr = new int[] { 41, 56, 11, 86, 22, 37, 8, 91, 19, 51, 94, 69,71, 48 };
System.out.println("排序前:");
printArr(arr);
// bubbleSort(arr);
insertSort(arr);
System.out.println(&quo ...
package com.companyname;
public class Test {
public static void main(String[] args) {
Resource res=new Resource();
Thread t1=new Thread(new Product(res));
Thread t2=new Thread(new Product(res));
Thread t3=new Thread(new Consumer(res));
Thread t4=new Thread(new Consumer(res));
t ...