摘要: importjava.text.*;importjava.util.*;publicclassTest...{publicstaticvoidmain(String[]args)throwsException...{Stringstr1=newString("1986-02-4");Stringstr2=newString("1986-2-8");java.text.SimpleDateFormatsimpleDateFormat=newSimpleDateFormat("yyyy-mm-dd");Dated1=simpleDateF 阅读全文
posted @ 2008-04-18 11:32 shine_panda 阅读(346) 评论(0) 推荐(0) 编辑
摘要: <%@pagecontentType="image/jpeg"import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*"%><%!ColorgetRandColor(intfc,intbc)...{//给定范围获得随机颜色Randomrandom=newRandom();if(fc>255)fc=255;if(bc>255)bc=255;intr=fc+random.nextInt(bc-fc);intg=fc+random.nextInt(bc-fc); 阅读全文
posted @ 2008-04-18 08:41 shine_panda 阅读(957) 评论(0) 推荐(0) 编辑