- 博客(8)
- 收藏
- 关注
原创 Reflect 数组操作示例
package com.age.www; import java.lang.reflect.Array; public class ReflectArrayDemo { public static void main(String[] args) throws Exception{ Object arry1d=Array.newInstance(Class.forName
2016-02-27 17:06:55 553
原创 匿名内部类 java 示例
class InnerAnonymousDemo { public static void main(String[] args) { int b=20; String str= new Object(){ int a=10; String str="hello"; public String toString(){ System.out.println(a+str)
2016-02-24 16:16:13 588
原创 Java Reflect 反射 .invoke 示例
package com.age.www; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class ReflectionDemo1 { public static vo
2016-02-23 22:58:09 565
原创 Java 反射机制 .class .getClass() Class.forName("") .TYPE int void
package com.age.www; public class ReflectionDemo { public static void main(String[] args) { //对象名.getClass()产生Class对象 Emploree1 e=new Emploree1(); Class emploree=e.getClass(); System.ou
2016-02-23 09:47:55 996
转载 职坐标 选课系统整体框架 参考
package com.iotekclass.ht.view; import java.util.Scanner; import com.iotekclass.ht.beans.Student; import com.iotekclass.ht.dao.StudentDao; import com.iotekclass.ht.dao.impl.IStudentDao;
2016-02-21 18:58:10 464
原创 随机验证码
import java.util.Random; class RandomSecurityCode { public static void main(String[] args) { //System.out.println("Hello World!"); char[] letter={'A','B','C','D','E','F','G','H','I','G','K','L
2016-02-20 22:18:33 209
原创 DateDemo 时间格式类 SimpleDateFormat DateFormat
时间格式类 SimpleDateFormat DateFormat Date
2016-02-19 16:06:43 365
原创 JAVA初始化顺序验证
class InitDemo { public static void main(String[] args) { //System.out.println(ABC.ID); //new ABC("xiaowang"); new EFG("xiaoli",20); /* 输出结果: D:\EditPlusJava>java InitDemo ABC静态代码块stati
2016-02-17 17:00:19 325
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人