当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: /** Created on 2004-12-25** TOD
 

 

 ·简析java开发中的xml编程    »显示摘要«
    摘要: xml作为全球通用的结构化语言,越来越受人们青睐,各种开发平台(比如microsoft studio系列、oracle系列、inprise borland系列等)也都把支持xml开发作为宣传口号之一 。由于笔者所从事的电子政务开发较早的引入了xml,所以尝到了许多甜头,在许多项目中利用xml数据交换信息,省去了许多麻烦事,不用制定繁锁的数据格式,利用xml数据易于表达,也利于一线开发者跟踪调试。......
    摘要: although the apache digester is popular today and also benefit us a lot, but sometimes we still need to validate or parse the xml base on the dtd, for the static validate/parse (most of the case, it......


FIFO与LRU 算法实现(java)
上一页   ...

 public static void main(string[] args) {

   【程序编程相关:学习java-配置tomcat

  testreplacement at=new testreplacement(); 【推荐阅读:MessageDrivenBean笔记

  at.output(); 【扩展信息:Java记事本和界面(一)

  at.generaterandomdigit();

  

  system.out.println("-------------using fifo--------------");

  system.out.println();

  for(int i=0;i<framesize.length;i++){

   system.out.println("frame size:  "+framesize[i]+"\n");

   at.initframeforfifo(framesize[i]);

   at.fiforeplace(framesize[i]); 

   system.out.println("total errors found:  "+errorcount);   

   system.out.println("\n************************************\n");

   

   errorcount=0;

  }

  system.out.println();

  system.out.println("----------------using lru----------------");

  system.out.println();

  for(int i=0;i<framesize.length;i++){

   system.out.println("frame size:  "+framesize[i]+"\n");

   at.initframeforlru(framesize[i]);

   at.lrureplace(framesize[i]); 

   system.out.println("total errors found:  "+errorcount);

   system.out.println("\n************************************\n");

   errorcount=0;

  }

 }

 

 public void generaterandomdigit(){

  for(int i=0;i<arraysize;i++){

   digitalarray[i]=(int)math.round(math.random()*9);

  }

 }

&
...   下一页
 ·java初学者必读-经验总结    »显示摘要«
    摘要: 3:tomcat服务器配置: 1):设置好系统环境变量。 2):java_home=g:\jbuilder6\jdk1.3.1 g:\jbuilder6\jdk1.3.1为jdk安装目录 3):tomcat_home=tomcat安装目录4:修改serlet而不重新启动tomcat修改%tomcat_home%\conf\server.xml大致如下:<context path="" do......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE