ÕûÀíÓÃJavaʵÏÖÊý×Öת»¯³É×Ö·û´®×ó±ß×Ô¶¯²¹Áã·½·¨
Java ÖиøÊý×Ö×ó±ß²¹0 £¨1£©·½·¨Ò»
import java.text.NumberFormat; public class NumberFormatTest { public static void main(String[] args) {
//´ý²âÊÔÊý¾Ý
int i = 1;
//µÃµ½Ò»¸öNumberFormatµÄʵÀý
NumberFormat nf = NumberFormat.getInstance();
//ÉèÖÃÊÇ·ñʹÓ÷Ö×é
nf.setGroupingUsed(false);
//ÉèÖÃ×î´óÕûÊýλÊý
nf.setMaximumIntegerDigits(4);
//ÉèÖÃ×îСÕûÊýλÊý
nf.setMinimumIntegerDigits(4);
//Êä³ö²âÊÔÓï¾ä
System.out.println(nf.format(i));
}
} À´Ô´£ºhttp://blog.csdn.net/xiaohunzhang/archive/2008/08/07/2782592.aspx £¨2£©·½·¨¶þ£¨¸öÈËÒÔΪ¸Ã·½·¨¼òµ¥ÓÐЧ£¬µ«¾ÊÔÑéËÆºõString.format()º¯ÊýÓÐÎÊÌ⣩ public class TestStringFormat {
public static void main(String[] args) {
int youNumber = 1;
// 0 ´ú±íÇ°Ãæ²¹³ä0
// 4 ´ú±í³¤¶ÈΪ4
// d ´ú±í²ÎÊýΪÕýÊýÐÍ
String str = String.format("%04d", youNumber);
System.out.println(str); // 0001
}
}
À´Ô´£ºhttp://liuwei1981.javaeye.c
Ïà¹ØÎĵµ£º
ʼþÔ´¸ºÔð²úÉúʼþ
ʼþÀࣺ¶¨ÒåʼþµÄÌØÕ÷£»
¼àÌýÆ÷½Ó¿Ú£º¶¨Òå¼àÌýÆ÷Ó¦¸ÃʵÏֵŦÄÜ£»
¼àÌýÆ÷£ºÊµÏÖ¼àÌýÆ÷½Ó¿Ú£¬¼àÌýʼþµÄ·¢Éú²¢×÷³öÏìÓ¦£»
ËùÓеÄʼþÀà±ØÐë¼Ì³ÐJavaʼþ»ùÀ࣬¼´java.util.EventObject£»EventObject(Object source)ÊÇEventObjectΨһµÄ¹¹Ôì·½·¨£¬ÕâÒâζ×ÅËùÓÐʼþ±ØÐëÔÚʵÀý»¯Ê±¾ÍÖ¸¶¨Ê¼þÔ´ ......
ÎÊÌâÃèÊö
Exception in thread "main" java.lang.OutOfMemoryError:
Java heap space
½â¾ö·½°¸[ת]
Ò»Ö±¶¼ÖªµÀ¿ÉÒÔÉèÖÃjvm heap´óС£¬Ò»Ö±ÓÃeclipseд/µ÷ÊÔjava³ÌÐò¡£Ò»Ö±ÓÃÃüÁîÐÐor
console¼Ó²ÎÊýÅܳÌÐò¡£ÏÖÏó£ºÔÚeclipseµÄÅäÖÃÎļþeclipse.iniÖÐÉèÖÃ-vmargs -Xms500m
-Xmx1024m
£¬ÔÚeclipseÖ ......
ÏÈÌù´úÂë°É
¸Ðл£ºhttp://xranming.blog.163.com/blog/static/24204952009914104148872/
http://www.diybl.com/course/3_program/java/javajs/20090303/157541.html
1¡¢java´úÂ룺
Ö÷Òª²ÉÓÃdomÀ´½øÐвÙ×÷
java¶Ôxml²Ù×÷ÓÐËÄÖÖ·½·¨£ºhttp://passmatlab.bokee.com/3455905.html
package test;
import java ......
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
Ò».µã»÷ͼÊ飬չʾ¸ÃÊéµÄÏêϸÐÅÏ¢
µã»÷ͼÊé→booksÒ³Ãæ→ͨ¹ýurlÖØÐ´displayBook.jsp?isbn=¸ÃÊé±àºÅ →´«ÈëdisplayBooksÒ³Ãæ→
<c:set var="isbn" value="${param.isbn}"></c:set>
<c:forEach var="currentBook" items="${sessionScope.bookTitles}">
<c:if test="${ ......