摘要: MVC的概念可以上 百度百科 查下MVC是用于Web开发一种框架设计模式,实现了 页面设计 与后台处理 之间的逻辑分离,健壮性,扩展性 (一大堆好的词汇都可以用上去)强MVC 可以用于 Java Web Project ,开发多了,前人们就帮我们封装提供了Spring , Hibenate ,Structs等框架也可以用于 .Net Web Project ,开发多了,前人们就帮我们封装提供了 ASP.NET MVC框架今天,看了部视频,结合以前不多的开发经验,予以以下总结:(1)MVC即 Model <-> Controller <-> ViewMVC用于JAVA的W 阅读全文
posted @ 2013-04-08 16:53 glt66 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1 public class NumSort { 2 public static void main(String[] args) { 3 int[] a = new int[args.length]; 4 for (int i=0; i<args.length; i++) { 5 a[i] = Integer.parseInt(args[i]); 6 } 7 print(a); 8 selectionSort(a); 9 print(a);10 }11 ... 阅读全文
posted @ 2013-04-08 15:13 glt66 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1 public class Test { 2 public static void main(String arg[]){ 3 if (arg.length<3) 4 { 5 System.out.println("输入错误"); 6 System.exit(-1); 7 } 8 double a=Double.parseDouble(arg[0]); 9 double b=Double.parseDouble(arg[1]);10 dou... 阅读全文
posted @ 2013-04-08 14:51 glt66 阅读(117) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String arg[]){ int[] a={2,4,6,8,10}; for (int i=0;i<a.length;i++) { System.out.println(a[i]); } for (int i=0;i<arg.length;i++) { System.out.println(arg[i]); } }}Vi... 阅读全文
posted @ 2013-04-08 14:01 glt66 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.*; 2 3 public class BasicGeneric { 4 public static void main(String[] args) { 5 List<String> c = new ArrayList<String>(); 6 c.add("aaa"); 7 c.add("bbb"); 8 c.add("ccc"); 9 for(int i=0; i<c.size(); i++) {10 String s = c.get(... 阅读全文
posted @ 2013-04-08 10:40 glt66 阅读(150) 评论(0) 推荐(0) 编辑