excel java ʵÀý
POIFSFileSystem fs=new POIFSFileSystem(new FileInputStream(cfname));
HSSFWorkbook wb = new HSSFWorkbook(fs);
// wb.removeSheetAt(2);
HSSFSheet sheet = wb.getSheetAt(0);
// sheet.setColumnWidth((short)200,(short)500);
sheet.setColumnWidth((short)1, (short)4000); //ÉèÖÃÎïÁϱàºÅÁеĿí¶È
sheet.setColumnWidth((short)2, (short)12000); //ÉèÖÃÎïÁÏÃèÊöÁеĿí¶È
sheet.setColumnWidth((short)4, (short)4000); // ÉèÖÃͼºÅÁеĿí¶È
HSSFFont hf=wb.createFont();
hf.setColor((short)4); //1:°×É«,2:ºìÉ«,3:ÂÌÉ«,4:À¶É«,5:»ÆÉ«,6:×ÏÉ«
HSSFCellStyle cs = wb.createCellStyle();
&
Ïà¹ØÎĵµ£º
ij֪ÃûÃÅ»§ÍøÕ¾µÄÒ»µÀ±ÊÊÔÌâ
public class Test {
public static void stringUpd(String str) {
str = str.replace("j", "l");
System.out.println(str);
}
public static void stringBufferUpd(StringBuffer bf) {
bf.append("c");
System.out.println(bf);
}
......
// µ¼Èë£É£Ï¿âÀà
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
// µ¼Èë¡¡£Ð£Ï£É¿âÀà
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi ......
²é¿´×îо«»ªÎÄÕ Çë·ÃÎʲ©¿ÍÊ×Ò³Ïà¹ØÎÄÕ ͨÓøßУÅÅ¿ÎËã·¨Ñо¿----Ç°ÑÔjava cloneÏê½âÈ«ÃæÉîÈë½éÉÜC++×Ö·û´®£ºstringÀàÔƼÆËãµ¼ÂÛFreeMarker±Ê¼Ç²ÔÓ¥-GISRenÂþ»°GISÁÖÊÏÎïÓï.³¯»¨Ï¦Ê°Ö®ºÞ·êÇäÍíÎ人¾¹Éý¹«Ë¾ WebSphere Portal ÄÚÈݹÜÀíÉý¼¶ÊµÊ©·½°¸ ......
Jsp
·½Ãæ
jspµÄ³£ÓõÄÃüÁî´ð£ºpage, include, talib, forward,
Servlet
·½Ãæ
1
¡¢ËµÒ»Ëµ
Servlet
µÄÉúÃüÖÜÆÚ
?
´ð:servletÓÐÁ¼ºÃ
µÄÉú´æÆڵĶ¨Ò壬°üÀ¨¼ÓÔغÍʵÀý»¯¡¢³õʼ»¯¡¢´¦ÀíÇëÇóÒÔ¼°·þÎñ½áÊø¡£Õâ¸öÉú´æÆÚÓÉjavax.servlet.Servlet½Ó¿ÚµÄ
init,serviceºÍdestroy·½·¨±í´ï¡£
2
¡¢
Servlet
°æ±¾¼ä
(
ÍüÁ ......
java.util
Àà Random
java.lang.Object
java.util.Random
ËùÓÐÒÑʵÏֵĽӿڣº
Serializable
Ö±½ÓÒÑÖª×ÓÀࣺ
SecureRandom
public class Random
extends Object
implements Serializable
´ËÀàµÄʵÀýÓÃÓÚÉú³ÉαËæ»úÊýÁ÷¡£´ËÀàʹÓà 48 λµÄÖÖ×Ó£¬Ê¹ÓÃÏßÐÔͬÓ๫ʽ¶ÔÆä½øÐÐÐ޸ģ¨Çë²ÎÔÄ Donald Knuth µÄ ......