随笔分类 - JAVA问题
摘要:====>我的新浪小铺public class TestReflect {public static void main(String[] args){APerson a=new APerson();Field fields[] = a.getClass().getDeclaredFields();String[] name = new String[fields.length];Object[] value = new Object[fields.length];try{ Field.setAccessible(fields, true); for (int i = 0; i <
阅读全文
摘要:====>我的新浪小铺package com.landray.kmss.km.mdm.maindata.jdbc.tools;import java.lang.reflect.Field;import java.lang.reflect.Method;import java.lang.reflect.Modifier;public class Test {public static void main(String[] args){try {TestBean bean = new TestBean();String temp = "";bean.setAge(&quo
阅读全文
摘要:====>我的新浪小铺在JAVA的如果想要在内部方法中引用外方法的参数,就必须将外部方法中的参数变量用 final 进行修饰。private void runTest(final HttpServletRequest req, int cellTime,int countTime) {// 启动测试单位时间发送定时器if (timerA == null)timerA = new Timer();timerA.scheduleAtFixedRate(new TimerTask() {public void run() {startWorks();}}, new Date(), cellTi
阅读全文
摘要:package com.read;import java.io.BufferedReader;import java.io.File;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOException;/*** @author dengshaohua*/public class Read...
阅读全文
摘要:package com.read;import java.io.BufferedReader;import java.io.File;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOException;/*** @author dengshaohua*/public class Read...
阅读全文

浙公网安备 33010602011771号