`
sunway
  • 浏览: 115120 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
package sort; import java.util.ArrayList; import java.util.List; public class HeapSort {     /**      * @param args      */     public static void main(String[] args) {         // TODO Auto-generated method stub         int array[] = {16,4,10,14,7,9,3,2,8,1,0,23,15,13}; //        array= arr ...
package sort; public class InsertSort {     /**      * @param args      */     public static void main(String[] args) {         // TODO Auto-generated method stub         int array[] = {5,2,4,6,1,3,10,20,8,9,11,90,21,17};         insertSort(array);         print(array);     }     public st ...

拼图测试类

/**  *  */ /**  * @author xingwei.jiao  *  */ package com.qunar.wireless.ugc.service.cms; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java ...
/**  *  */ /**  * @author  *  */ package com.qunar.wireless.ugc.caravan.business.las.record; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import ...
1.<%@ page   pageEncoding-这个需要和编辑它的编辑器用得编码方式一样,比如notepad需要指定pageEncoding="gbk",ul需要指定pageEncoding="utf-8",否则就乱码,或是报编译错误。这个是jspc读取此jsp编译成servlet用得编码。2.conentType="text/html;charset=utf-8",指的是返回给浏览器时,browser用得编码方式来显示此文本。比如指定为iso-8859-1,因为页面本身含有中文的话,就不能正确显示,会显示乱码。这个是head ...
4.有序链表 package link; public class SortedLink {  private Link first = null; private Link last = null; public SortedLink(Link first, Link last) {  super();  this.first = first;  this.last = last; }  public SortedLink() {  super();  this.first = null;  this.last = null; }  public boolean isEmpty(){   ...
3.双向链表 package link; public class DoubleLink {  public int iData; public DoubleLink next; public DoubleLink previous; public DoubleLink(int data) {  super();  iData = data; }  public void displayDoubleLink(){  System.out.println("{"+iData+"}"); }  public String toString(){  ret ...
package link; public class Link {  public int iData; public Link next = null; public Link(int data) {  super();  iData = data;  next = null; }  public void displayLink(){  System.out.println("Link: {"+iData+"}"); }  public String toString(){  return "{"+iData+"}&q ...
链表: package link; public class Link {  public int iData; public Link next = null; public Link(int data) {  super();  iData = data;  next = null; }  public void displayLink(){  System.out.println("Link: {"+iData+"}"); }  public String toString(){  return "{"+iData+&quo ...
--百分比正确显示的函数--   CREATE FUNCTION orafun.TO_CHAR (num decimal(31,2)) RETURNS VARCHAR(60) LANGUAGE  SQL CONTAINS SQL SPECIFIC TOCHARDECIMAL1 NO EXTERNAL ACTION DETERMINISTIC  RETURN case when num <0 and ( length(char(num))-locate('.',char(num))) >1  then '-' | |varchar(rtrim(char(bigint(num*(-1 ...
转载:http://www.08.la/news2010/newshtml/JiShuWenZhang/DB2/25363.html    函数名 函数解释 函数举例   AVG() 返回一组数值的平均值. SELECT AVG (SALARY) FROM BSEMPMS;   CORR(),CORRELATION()  返回一对数值的关系系数.    SELECT CORRELATION(SALARY, ...
1.db2 删除重复的记录:delete from (select * from (select ENT_ROLE, ENT_COMPONENT, ENT_ALL,ENT_UPDATEDBY ,row_number() over(partition by ENT_ROLE, ENT_COMPONENT, ENT_ALL,ENT_UPDATEDBY  order by ENT_ROLE, ENT_COMPONENT, ENT_ALL,ENT_UPDATEDBY ) as row_num from BS_MOD_ROLE_ENTRY) as e where row_num >1);delete ...
1. 启动tomcat报找不到com.ibm.db2.jcc.db2driver.答案:将db2jcc.jar,db2jcc_license_cu.jar放入tomcat的lib下。将was.xml放到C:\apache-tomcat-6.0.20\conf\Catalina\localhost下。2.启动tomcat 报严重: IOException while loading persisted sessions: java.io.EOFExceptionjava.io.EOFException at java.io.ObjectInputStream$PeekInputStream.rea ...
1。使用Ext.onReady(),发现ext内部报空指针错误,用Null.createChild()了。    使用<%    request.setAttribute("decorator", "none");    response.setHeader("Cache-Control","no-cache"); //HTTP 1.1    response.setHeader("Pragma","no-cache"); //HTTP 1.0    response ...
  Javascript在页面加载时的执行顺序 收藏 一、在HTML中嵌入Javasript的方法直接在Javascript代码放在标记对<script>和</script>之间 由<script />标记的src属性制定外部的js文件 放在事件处理程序中,比如:<p onclick="alert('我是由onclick事件执行的Javascript')">点击我</p> 作为URL的主体,这个URL使用特殊的Javascript:协议,比如:<a href="javascript:alert('我是 ...
Global site tag (gtag.js) - Google Analytics