- 浏览: 41512 次
最新评论
文章列表
public class MyTest {public static void main (String[] args){Random random = new Random(48);outer1:for(int i=0; i<100; i++){int j = random.nextInt(26)+'a';System.out.print((char)j + "," + i + ";" );outer2:switch(j){case 'a':case 'e':case 'i':case 'o':case 'u': System.out.printl ...
- 2009-01-03 11:23
- 浏览 420
- 评论(0)
一 <register.jsp>:<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%><%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <hea ...
- 2009-01-02 21:25
- 浏览 378
- 评论(0)
import java.io.*;
class FileName implements FilenameFilter{String str = null;
FileName(String s){str = "." + s;}public boolean accept(File dir, String name){return name.endsWith("a");}}
public class MyTest {public static void main (String[] args){/**FileOutputStream fos = null; ...
- 2009-01-02 01:15
- 浏览 252
- 评论(0)