页首是什么<\h1>

摘要: 第一个程序public class Test06 implements Runnable{ public int a = 0; public static void main(String[] args) throws InterruptedException { Test06 r = new Test06(); Thread[] t = new Thread[100]; for(int i = 0;i < 100;i++) t[i] = new Thread(r); for(int j = 0;... 阅读全文
posted @ 2014-04-11 20:14 YES_eng 阅读(320) 评论(0) 推荐(0) 编辑
摘要: public class Test05 { static int a[] = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 12, 10, 19, 18, 17, 16 ,23,45,43}; public static void main(String[] args) { sort(0,a.length-1); for(int b : a){ System.out.print(b+" "); } } public static void sort(int low, int height... 阅读全文
posted @ 2014-04-11 19:59 YES_eng 阅读(130) 评论(0) 推荐(0) 编辑
摘要: public class Test04 { static int a[] = {9,8,7,6,5,4,3,2,1,11,12,10,19,18,17,16}; public static void main(String[] args) { init(); int i,k; for(i = 0;i=0;i--){ sort(i,a.length); } } public static void sort(int i,int length){ int k = i; ... 阅读全文
posted @ 2014-04-11 17:40 YES_eng 阅读(165) 评论(0) 推荐(0) 编辑
摘要: public class Test03 { public static void main(String[] args) { int [] a = {1,2,3,4,5,6,7,8,9,10,11,12}; int i,m; m = a.length-1; for(i = 0; i <= m;){ if(a[i]%2 == 0){ a[i] = a[i] + a[m]; a[m] = a[i]- a[m]; a[i] = ... 阅读全文
posted @ 2014-04-11 16:39 YES_eng 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1、给定一个数组a[N],我们希望构造数组b[N],其中b[i]=a[0]*a[1]*...*a[N-1]/a[i]。在构造过程:不允许使用除法;要求O(1)空间复杂度和O(n)时间复杂度;除遍历计数器与a[N] b[N]外,不可使用新的变量(包括栈临时变量、对空间和全局静态变量等);请用程序实现并简单描述。public static void main(String[] args) { int[] a = {1,2,3,4,5,6,7,8,9}; int [] b = new int[a.length]; int i; b[0] = 1... 阅读全文
posted @ 2014-04-11 15:38 YES_eng 阅读(119) 评论(0) 推荐(0) 编辑
摘要: public class A { { System.out.println("A初始化块"); } static{ System.out.println("A静态初始化块"); } public A(){ System.out.println("A构造方法"); }}public class B extends A { { System.out.println("B初始化块"); } static{ System.out.println("B静态初始化块"); } ... 阅读全文
posted @ 2014-04-11 01:39 YES_eng 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 帮同学导出一个svn上的项目,也不知是什么原因,出现了几个包找不到,提示:import ** can not be resolved,而且还越弄越多,连自己写的的类都出现问题百度了许多,看到有个方法:执行 project - > clean,试了下,后来多出的错误是消失了,但一开始的几个错误还在。项目是用mavne管理的,mavne下也找到该jar是被导入的了,可是却是不行,无奈只好先在手动导入一遍。 阅读全文
posted @ 2014-04-11 01:21 YES_eng 阅读(121) 评论(0) 推荐(0) 编辑