- 博客(22)
- 资源 (1)
- 收藏
- 关注
转载 Java Reflection - Dynamic Class Loading and Reloading
http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.htmlIt is possible to load and reload classes at runtime in Java, though it is not as straightforward as one might
2015-05-31 11:55:46 744
转载 Java Reflection - Arrays
http://tutorials.jenkov.com/java-reflection/arrays.htmlWorking with arrays in Java Reflection can be a bit tricky at times. Especially if you need to obtain the Class object for a certain ty
2015-05-31 11:55:43 315
转载 Java Reflection - Generics
http://tutorials.jenkov.com/java-reflection/generics.htmlI have often read in articles and forums that all Java Generics information is erased at compile time so that you cannot access any o
2015-05-31 11:55:11 383
转载 Java Reflection - Dynamic Proxies
http://tutorials.jenkov.com/java-reflection/dynamic-proxies.htmlUsing Java Reflection you create dynamic implementations of interfaces at runtime. You do so using the classjava.lang.reflect.
2015-05-31 11:54:55 424
转载 Java Reflection - Annotations
http://tutorials.jenkov.com/java-reflection/annotations.htmlUsing Java Reflection you can access the annotations attached to Java classes at runtime.What are Java Annotations?Annotatio
2015-05-31 11:54:33 407
转载 Java Reflection - Getters and Setters
http://tutorials.jenkov.com/java-reflection/getters-setters.htmlUsing Java Reflection you can inspect the methods of classes and invoke them at runtime. This can be used to detect what gette
2015-05-31 11:52:53 438
转载 Java Reflection - Private Fields and Methods
http://tutorials.jenkov.com/java-reflection/private-fields-and-methods.htmlDespite the common belief it is actually possible to access private fields and methods of other classes via Java Re
2015-05-31 11:51:58 397
转载 Java Reflection - Fields
http://tutorials.jenkov.com/java-reflection/fields.htmlUsing Java Reflection you can inspect the fields (member variables) of classes and get / set them at runtime. This is done via the Java
2015-05-31 11:51:29 330
转载 Java Reflection - Methods
http://tutorials.jenkov.com/java-reflection/methods.htmlUsing Java Reflection you can inspect the methods of classes and invoke them at runtime. This is done via the Java class java.lang.ref
2015-05-31 11:50:53 671
转载 Java Reflection - Classes
http://tutorials.jenkov.com/java-reflection/classes.htmlThe Class ObjectClass NameModifiersPackage InfoSuperclassImplemented InterfacesConstructorsMethodsFieldsAnnotationsUsi
2015-05-31 11:49:16 346
转载 Java Reflection - Constructors
http://tutorials.jenkov.com/java-reflection/constructors.htmlUsing Java Reflection you can inspect the constructors of classes and instantiate objects at runtime. This is done via the Java c
2015-05-31 11:48:50 459
转载 反射0-Java Reflection Tutorial
http://tutorials.jenkov.com/java-reflection/index.htmlJava Reflection makes it possible to inspect classes, interfaces, fields and methods at runtime, without knowing the names of the classes,
2015-05-31 11:46:58 301
原创 Java数组
参考:http://www.w3cschool.cc/java/java-array.htmlhttp://www.blogjava.net/flysky19/articles/92763.html一,基础数组对于每一门编辑应语言来说都是重要的数据结构之一,当然不同语言对数组的实现及处理也不尽相同。Java语言中提供的数组是用来存储固定大小的同类型元素。
2015-05-29 15:12:49 343
转载 Android中Bitmap和Drawable
原文 http://dyh7077063.iteye.com/blog/970672一、相关概念1、Drawable就是一个可画的对象,其可能是一张位图(BitmapDrawable),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求,创建相应的可画对象2、Canvas画布,绘图的目的区域,用于绘图
2015-05-23 22:59:05 334
原创 view measure 过程
ViewGroup.javameasureChildren(),该方法的参数widthMeasureSpec,heightMeasureSpec是该ViewGroup的父类传给它的,包含父类对其大小的限制信息,遍历每个child/** * Ask all of the children of this view to measure themselves, taking in
2015-05-19 14:31:35 505
转载 静态库和动态库的优缺点
原文 http://chriszeng87.iteye.com/blog/1186094 , 有改动参考 http://www.jb51.net/article/37409.htm一、库的类型(一) 在windows中.dll 动态库.lib 静态库库即为源代码的二进制文件(二) 在linux中.so 动态库.a
2015-05-15 17:59:24 623
原创 常用查找算法
1,顺序查找条件:无原理:按顺序比较每个元素,直到找到或遍历完元素为止时间复杂度:O(n) private static int findSequent(int[] arr,int k){ int p = -1; for(int i=0;i<arr.length;i++){ if(k == arr[i]){
2015-05-11 15:33:49 1018
原创 冒泡排序
参考了 白话经典算法系列之一 冒泡排序的三种实现冒泡排序的算法和实现很简单。以从小到大为例。一组数,从头开始,拿出一个依次和之后每一个比较,如果前一个大于后一个,则交换顺序,直到循环完。另外一个一种是,两两比较,把最大的沉到最后一个位置。 /** * 从头到尾遍历,和之后的比较 * @param arr */ pr
2015-05-11 10:59:34 466
原创 java环境搭建
JRE Java Runtime Environment,java运行环境,包含jvm,以及运行java程序的必需的核心类。JDK Java Development Kit,java程序开发环境,包含了JRE。(所谓”绿色版“软件就是无需安装,下载即可使用,放在u盘上也可以使用,重装系统也没有影响,相对而言需要安装的软件,需要向注册表写东西,重装系统后需要重新安装)将javac
2015-05-10 22:06:43 472
原创 动态数组实现
源码中ArrayList,Vector就是用数组实现的,且是可变数组,看看是怎么实现的。默认大小10个。 public ArrayList() { this(10); }添加元素时 public boolean add(E e) { ensureCapacityInternal(size + 1); // Increments mo
2015-05-10 10:27:32 436
原创 java内部类
-----------2015.5.4------------为什么要使用内部类?内部类可以实现独立的接口或者继承外部类没能继承的类,一定程度上解决单继承和实现接口无法实现的功能。使用内部类还可以隐藏信息,比如用外部类的一个public方法返回一个实现了某个接口的内部类的对象,别的类是不知道该对象是由哪个类创建的。public class Test { public sta
2015-05-04 18:50:08 589
原创 排序-插入排序
参考了http://blog.csdn.net/morewindows/article/details/6665714插入排序的思想是将无序序列中的数插入到有序区间的适当位置,直到所有无序数到插入到有序区间。伪代码如下:1,数组a[n]的元素a[0]被认为是一个有序序列(该序列只有一个数而已)2,将数a[i]插入到之前的a[0...i-1]有序序列中3,直到i==n-1
2015-05-02 23:49:04 301
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人