当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: package expression;public class
 

 

 ·jsp+mysql制作简单的留言板(1)    »显示摘要«
    摘要: 留言板要实现的功能是:浏览的人能留言并能分页的查看留言,管理员能对留言进行处理!这个留言板由9个小程序组成,分别是:board.jsp;message.html;opendata.jsp;manager.jsp;password.jsp;check.jsp;delete.jsp;convert.jsp现在说第一个:board.jsp他的任务是整个留言板的主程序,让使用者留言,并提供分页功能!在开......
 ·servlet的另类写法:使用jython    »显示摘要«
    摘要: 众所周知,servlet是java在服务器端java/j2me/code/ target=_blank>程序设计的重要组成部分,servlet执行效率较高,适合做程序的逻辑处理,缺点是使用起来比较繁琐,每个servlet必须在web.xml中声明并且当修改部署后的servet后一般还需要reload容器,这种情况对于开速开发是很不利的,本文介绍一种另外的serlvet开发方式:使用jython ......


JAVA数据结构示例---逆波兰式求值!

package expression;

 public static boolean isoperator(string operator){ 【程序编程相关:End-to-End J2ME Appl

public class calculate{ 【推荐阅读:Hibernate实践(二)

  else return false; 【扩展信息:Junit3.8.1代码阅读—执行流程(

  if(operator.equals("+")||operator.equals("-")||operator.equals("*")||operator.equals("/")||operator.equals("(")||operator.equals(")")) return true;

 }

 public static int priority(string operator){

  if(operator.equals("+")||operator.equals("-")||operator.equals("(")) return 1;

  else if(operator.equals("*")||operator.equals("/")) return 2;

  else return 0;

 }

 public static string tworesult(string operator,string a,string b){

  try{

   string op=operator;

   string rs=new string();

   double x=double.parsedouble(b);

   double y=double.parsedouble(a);

   double z=0;

   if(op.equals("+")) z=x+y;

   else if(op.equals("-")) z=x-y;

   else if(op.equals("*")) z=x*y;

   else if(op.equals("/")) z=x/y;

   else z=0;

   return rs+z;

  }

  catch(numberformatexcepti
...   下一页
    摘要: appfuse的ant任务 this page contains a listing of the most common ant targets in appfuse that i use in my daily development. for a complete list of tasks, type "ant -projecthelp" at the command line. ......
» 本期热门文章:

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