`
文章列表
/** * Java Map反射成POJO(ResourcesBean ) */ private static ResourcesBean mapToObject(Map<String, Object> map, String ObjectBeanPath) { ResourcesBean resourcesBean = new ResourcesBean(); try { Class clazz = Class.forName(ObjectBeanPath); for (Map.Entry<String, Object&g ...

1.5对象排序

1,对象 package obj; public class Person { private String firstName; private String lastName; private int age; public Person(String firstname,String lastname,int age){ firstName=firstname; lastName=lastname; this.age=age; } public String getFirstName() { return firstNam ...

1.4插入排序

package array; /** * * 插入排序 * @author 杨伦亮 * 1:14:56 AM */ public class InsertSort { private long[] a; private int nElement; long time=0; /** * 构造函数 * * @param size */ public InsertSort(int size) { a = new long[size]; nElement=size; } /** * 更新某个坐标的值 * ...

1.3二分查找

package array; /** * 二分查找算法 * @author 杨伦亮 * 1:14:41 AM */ public class HighArray2 implements Find{ private long[] a; private int nElement; /**构建函数*/ public HighArray2(int max) { System.out.println("注意:必须是规则有序的队列!"); a = new long[max]; nElement = 0; } /* ...

1.2查找算法

package array; /** * 线性查找算法 * <pre> * 循环依次从最后一位到第一位(或从第一位到最末位)依次查找 * </pre> * @author 杨伦亮 * 1:14:56 AM */ public class HighArray implements Find{ private long[] a; private int nElement; /**构建函数*/ public HighArray(int max) { a = new long[max]; nElement = 0 ...

1.1封装数组

package array; public class LowArray { private long[] a; /** * 构造函数 * * @param size */ public LowArray(int size) { a = new long[size]; } /** * 更新某个坐标的值 * * @param point * @param value */ public void setElem(int point, long value) { a[point] = value; ...

1.0数组实现

package array; /** * 数组应用 面向过程编程 * * @author 杨伦亮 12:10:12 AM */ public class ArrayApp { /** * @param args */ public static void main(String[] args) { long[] arr = new long[100]; int nElement = 0; int j; // loop count long searchKey;// Key Item // insert 10 itea ...

div遮住了flash

可以通过以下方法解决。 1, 代码中加入 <param name="wmode" value="transparent" />  意思是让flash 透明。 2,让flash置底,建议使用这种。 <param name="wmode" value="opaque">  注意如果想让IE 与FF 同时起作用,请在 <embed 引用flash 路径后面加上,wmode="opaque" 这个,IE与FF就都兼容了。

JDOM 封装XML操作

    博客分类:
  • JAVA
package org.jdom; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.io.FileUtils; import org.jdom.input.SAXBuilder; import org.jd ...
用正则表达式替换数字           String height=css.get("height")==null?"":css.get("height").replaceAll("[^\\d\\-\\.]*","").trim();         String height_unit=css.get("height")==null?"":css.get("height").replaceAll("\\d+(,\\d{3} ...
PageSetting.settingPageStyle(list,processVO2,{ callback : function(d) { if(!d){ alert("收款失败"); }else{ alert("收款成功!"); window.close(); } }, timeout : 1000, errorHander : function(err) { ...

浮动层

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset ...
http://sd.csdn.net/a/20100308/259219.html 敏捷开发的理念已经流行了很长的时间,在敏捷开发中的开发迭代阶段中,我们可以通过五个步骤,来有效的提高整个项目的代码质量。 Java项目开发过程中,由于开发人员的经验、Java代码编写习惯,以及缺乏统一的标准和管理流程,往往导致整个项目的代码质量较差,难于维 护,需要较大的测试投入和周期等问题。这些问题在一个项目组初建、需求和设计均具有不完全可预期性和完备性的全新项目中将尤为突出。 如图1所示,敏捷开发过程经历需求调研,用例分析和用例分解,进入开发迭代阶段。在每个迭代过程中,可以采用以下步骤来保证和提高整 ...
  using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Xml; namespace PuTianCheng { /// ...
web.xml里面可以定义两种参数:(1)application范围内的参数,存放在servletcontext中,在web.xml中配置如下:  <context-param>           <param-name>context/param</param-name>           <param-value>avalible during application</param-value>
Global site tag (gtag.js) - Google Analytics