javaλÔËËã
JAVAÖÐλÔËËã·û°üÀ¨: & | ~ ^ << >> >>>
Ò»¡¢Ê×ÏÈÒª¸ãÇå³þ²ÎÓëÔËËãµÄÊýµÄλÊý£º
javaµÄ8ÖÖ»ù±¾ÀàÐÍ£ºbyte,short, char, int, long,float,double,boolean.
ÔÚÄÚ´æÖй̶¨³¤¶È(×Ö½Ú)£º1 2 2 4 8 4 8 true/false
ÕâЩ¹Ì¶¨ÀàÐ͵ij¤¶ÈÓë¾ßÌåµÄÈíÓ²¼þ»·¾³Î޹ء£ÕâÒ»µãÓëC++²»Í¬,JavaÖеÄcharÀàÐÍÓÃUnicodeÂë´¢´æ
Óë´Ë¶ÔÓ¦µÄ£¬javaÌṩÁË8ÖÖ°ü×°ÀàÐÍ£º
Byte,Short,Character,Integer,Long,Float,Double,Boolean.
ËüÃÇÖ®¼äµÄÏ໥ת»»£ºÀýÈ磺
double a=1;
//°Ñdouble»ù±¾ÀàÐÍת»»ÎªDouble°ü×°ÀàÐÍ
Double b=new Double(a);
//°ÑDouble°ü×°ÀàÐÍת»»Îªdouble»ù±¾ÀàÐÍ
a=b.doubleValue();
Èçint i = 1;
iµÄ¶þ½øÖÆÔÂë±íʾΪ£º
00000000000000000000000000000001
long l = 1;
lµÄ¶þ½øÖÆÔÂë±íʾΪ£º
0000000000000000000000000000000000000000000000000000000000000001
¶þ¡¢ÔÂë——·ûºÅλΪ0±íʾÕýÊý£¬Îª1±íʾ¸ºÊý£»
ÆäÓà¸÷λµÈͬÓÚÕæÖµµÄ¾ø¶ÔÖµ¡£
È磺0000000000000010B=2£¬1000000000000010B=-2
·´Âë——·ûºÅλµÄÓ÷¨¼°ÕýÊýµÄ±íʾÓë“ÔÂë”Ò»Ñù£»
¸ºÊýµÄ±íʾÊÇÔÚ“ÔÂë”±íʾµÄ»ù´¡ÉÏͨ¹ý½«·ûºÅλÒÔÍâ
µÄ¸÷λȡ·´À´»ñµÃµÄ¡£
È磺0000000000000010B=2£¬1111111111111101B=-2
²¹Âë——·ûºÅλµÄÓ÷¨¼°ÕýÊýµÄ±íʾÓë“ÔÂë”Ò»Ñù£»
¸ºÊýµÄ±íʾÊÇÔÚ“·´Â딵Ļù´¡ÉÏͨ¹ý¼Ó1À´»ñµÃµÄ¡£
È磺00000010B=2£¬11111110B=-2
Èçint i = -1;
10000000000000000000000000000001,×î¸ßλÊÇ·ûºÅλ¡£ÕýÊýΪ0£¬¸ºÊýΪ1¡£
·ûºÅλ²»±ä£¬ÆäËûλÖðλȡ·´ºó£º
11111111111111111111111111111110,¼´·´Âë¡£
·´Âë¼Ó1£º
11111111111111111111111111111111,¼´²¹Âë¡£
=======================================================
Ïà¹ØÎĵµ£º
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......
JAIµÄÈ·ÊǸö²»´íµÄ¶«¶«£¬Í¼ÐÎäÖȾÉÏÌṩÁ˱ȽϺõÄÀà·â×°ÒÔ¼°¿çƽ̨ÐÔ¡£²»ÖªµÀΪºÎJAI¾ÍÔÚ2006ÄêÖ¹²½ÔÚ1.1.3µÄ°æ±¾ÏÂÁË£¬Äª·ÇSun(Oracle)ÕæµÄÈ¥×öJava 2DµÄ·á¸»È¥ÁË¡£ÔÝʱ»¹Ã»Óп´µ½Java 2D·½ÃæµÄ×ÊÁÏ£¬ÏÈ°ÑJAIµÄÄÚÈÝÌù³öÀ´¡£
ÏÂÔØJAI¿ÉÒÔÈ¥ÕâÀï http://download.java.net/media/jai/builds/release/1_1_3/
ÏëÒªÁ˽âËüµÄ° ......
дÈëʱ£¬ÏÈ×öencode£º
public static String encode(String src) {
String result = null;
try {
result = new String(src.getBytes("gbk"), "ISO-8859-1");
} catch (UnsupportedEncodingException uee) {
System.err.println(uee);
}
return result;
}
¶Á³öʱ£¬ÔÙ×ödecode£º
public static String deco ......
ÔÚJavaÖлñȡϵͳÊôÐÔ
ÔÚJavaÓ¦ÓóÌÐòÔËÐÐʱ£¬ÌرðÊÇÐèÒªÔÚ¿çƽ̨¹¤×÷»·¾³ÏÂÔËÐÐʱ£¬ÐèҪȷ¶¨²Ù×÷ϵͳÀàÐÍ¡¢Óû§JDK°æ±¾ºÍÓû§¹¤×÷Ŀ¼µÈË湤×÷ƽ̨±ä»¯µÄÐÅÏ¢£¬À´±£Ö¤³ÌÐòÕýÈ·ÔËÐС£Ò»°ãÇé¿öÏ£¬¿ÉÒÔÀûÓÃJDKÌṩµÄϵͳÊôÐÔÀࣨProperties£©Öеķ½·¨£¬¿ìËٵػñÈ¡¹¤×÷»·¾³ÐÅÏ¢¡£ÁíÍ⣬³ÌÐò¿ª·¢ÈËÔ±»¹¿ÉÒÔ¶¨ÒåÓëÓ¦Óà ......
Java codeFormat ft=Format.getRawFormat();
ft.setEncoding("utf-8");
ft.setIndent(" ");//ÉèÖÃËõ½ø
XMLOutputter outputter=new XMLOutputter(ft);//ÉèÖÃXML¸ñʽ
Õâλ˵µÄ²»´í£»
ÔÚieÀïÃ棬ËüÄÜ°Ñxml×Ô¶¯½âÎö³ÆÊ÷Ðνṹ£¬ËùÒÔ¿´ÆðÀ´Ã»ÎÊÌ⣬ÔÚ¼Çʱ¾ÀïÃ棬¾Í²»ÐÐÁ ......