摘要: ---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------public class ReflectTester { public Object copy(Object object) throws Exce... 阅读全文
posted @ 2015-03-13 17:05 gaopeng868988 阅读(113) 评论(0) 推荐(0) 编辑
摘要: public class ReflectTester { public Object copy(Object object) throws Exception { // 获得对象的类型 Class classType = object.getClass(); System.out.printl... 阅读全文
posted @ 2015-03-13 17:04 gaopeng868988 阅读(158) 评论(0) 推荐(0) 编辑
摘要: ---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------class CopyWenJianJia{ public static void main(String[] args)throws ... 阅读全文
posted @ 2015-03-13 16:57 gaopeng868988 阅读(524) 评论(0) 推荐(0) 编辑
摘要: ---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------class CopyWenJianJia{ public static void main(String[] args)throws ... 阅读全文
posted @ 2015-03-13 11:08 gaopeng868988 阅读(337) 评论(0) 推荐(0) 编辑
摘要: ---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------public class Example implements IExample { private int counter; public S... 阅读全文
posted @ 2015-03-13 07:11 gaopeng868988 阅读(248) 评论(0) 推荐(0) 编辑
摘要: ---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------一.枚举的概念 关于枚举的概念,我们可以先提一个问题,对于一切都是类一切都是对象的JAVA语言来说,枚举是不是类? enum除了... 阅读全文
posted @ 2015-03-12 18:26 gaopeng868988 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 迭代器遍历map集合的步骤:---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ---------------------- Map map = new HashMap(); map.put(1, "a"); map.put(2, "b"... 阅读全文
posted @ 2015-03-12 16:53 gaopeng868988 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: public class MultiThread { public static void main(String args[]) { System.out.println("我是主线程!"); //下面创建线程实例thread1 ThreadUseExtends thread1=new Thr... 阅读全文
posted @ 2015-03-11 15:56 gaopeng868988 阅读(307) 评论(1) 推荐(2) 编辑
摘要: ---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! -------------------------------------------- ASP.Net+Unity开发、.Net训、期待与您交流! ---------------------... 阅读全文
posted @ 2015-03-11 15:49 gaopeng868988 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 既然是面向对象,那最重要的概念无非是对象。我们面对的一切事物其实都是对象。对象有它的固有属性和固有方法,其实对象也就是由一个属性集合和一个方法集合组成的。这可以结合 Java 理解,在 Java 中对象是类的实例,而每个类都定义了一系列的属性和方法。然后说到类,这也是一个重要的概念。类,很简单,是一... 阅读全文
posted @ 2015-03-11 09:02 gaopeng868988 阅读(288) 评论(0) 推荐(0) 编辑