JavaÖеÄתÒå×Ö·û
\n »»ÐÐ(\u000a)
\t ˮƽÖƱí·û(\u0009)
\b ¿Õ¸ñ(\u0008)
\r »Ø³µ(\u000d)
\f »»Ò³(\u000c)
\' µ¥ÒýºÅ(\u0027)
\" Ë«ÒýºÅ(\u0022)
\\ ·´Ð±¸Ü(\u005c)
\ddd Èýλ°Ë½øÖÆ
\udddd ËÄλʮÁù½øÖÆ
Ïà¹ØÎĵµ£º
ÔÚJAVAÖУ¬ ÔÚʹÓÃString.split·½·¨·Ö¸ô×Ö·û´®Ê±£¬µ«Òª×¢ÒâÓÐЩ×Ö·û²»ÄÜÖ±½ÓÓõÄ,·Ö¸ô·ûÈç¹ûÓõ½Ò»Ð©ÌØÊâ×Ö·û,±ÈÈç "| "
,"*",µÈ·ñÔò»á³öÏÖÎÊÌ⣬ÒÔÇ°¸ÕÓÃʱ¾ÍÒòΪÕâ¸öÎÊÌâ¶ø¿´ÁË°ëÌìµÄ´úÂë¡£
public String[] split(String regex)
Splits this string around matches of the given regular expression.
&nbs ......
Java×¢Ê͹淶
¶¨ÒåÕâ¸ö¹æ·¶µÄÄ¿µÄÊÇÈÃÏîÄ¿ÖÐËùÓеÄÎĵµ¶¼¿´ÆðÀ´ÏñÒ»¸öÈËдµÄ£¬Ôö¼Ó¿É¶ÁÐÔ£¬¼õÉÙÏîÄ¿×éÖÐÒòΪ»»È˶ø´øÀ´µÄËðʧ¡££¨ÕâЩ¹æ·¶²¢²»ÊÇÒ»¶¨Òª¾ø¶Ô×ñÊØ£¬µ«ÊÇÒ»¶¨ÒªÈóÌÐòÓÐÁ¼ºÃµÄ¿É¶ÁÐÔ£©¡£
Java µÄÓï·¨Óë C++ ¼°ÎªÏàËÆ£¬ÄÇô£¬ÄãÖªµÀ Java µÄ×¢ÊÍÓм¸ÖÖÂð£¿ÊÇÁ½ÖÖ£¿ ¡¡¡¡
// ×¢ÊÍÒ»ÐС¡¡¡
/* ...... */ ×¢Ê ......
Ê×ÏÈҪ˵µÄÊÇ,HibernateÖÐORMÀï¶ÔÓ¦µÄÓ³ÉäÎļþBEAN,±ØÐëʵÏÖÐòÁл¯.ÒòΪBEANÀïµÄÊý¾ÝÐèÒª´æÈëÊý¾Ý¿â(Ҫת»¯Îª¶þ½øÖƱ£´æ),½øÐдæÈ¡¹¤×÷.
JAVAÀàµÄÊý¾Ý ,Èç¹ûÒª½øÐÐÏà¹ØµÄ´æ´¢¹¤×÷(ÈçдÎļþ,ÍøÂç´«Êä,дÊý¾Ý¿âµÈ),ÄÇôÕâ¸öÊý¾ÝµÄÀà ¾Í±ØÐëʵÏÖÐòÁл¯½Ó¿Ú (java.io.Serializable ......
1Áгö´ÅÅÌ/Îļþ¼ÐÄÚµÄÎļþ
import java.io.File;
import java.io.IOException;
public class Test {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
&n ......
import java.text.DecimalFormat
double a = 2.3659874;
//СÊý¸ñʽ»¯£¬ÒýºÅÖеÄ0.000±íʾ±£ÁôСÊýµãºóÈý루µÚËÄλËÄÉáÎåÈ룩
DecimalFormat df = new DecimalFormat("0.000");
String num = df.format(a);
System.out.println(num);
Êä³ö½á¹û¾ÍÊÇ 2.366
Java¼ÆËãʱ¼ä²î
±ÈÈ磺ÏÖÔÚÊÇ2004-03-26 13£º31£º40
&nbs ......