posts - 23,comments - 12,trackbacks - 0
第二章 Java编程环境
2.1安装java
1、java工具包http://java.sun.com/j2se/1.4/install-windows.html
2、设置执行环境(windows 2000)
PATH=c:\jdk\bin;
3、安装库源文件和文档
jar xvf src.jar
jar xvf j2sdkversion-doc.zip

第一个java例子
eg:Weclome.java

public class Welcome
{
public static void main(String[] args)
{
String[] greeting=new String[3];
greeting[0]="Welcome to Core Java";
greeting[1]="by Car Horstman";
greeting[2]="and Gary Cornell";
for ( int i=0;i<greeting.length;i++)
System.out.println(greeting[i]);
}
}

posted @ 2006-06-23 13:25 my java 阅读(863) | 评论 (3)编辑 收藏
1、获得表单中文本框的数据:
mySmartUpload.getRequest().getParameter("applyusrname")
java.util.Enumeration e = mySmartUpload.getRequest().getParameterNames();
posted @ 2006-06-23 09:34 my java 阅读(736) | 评论 (0)编辑 收藏