Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java½â»ó3 32Ñ­»·ÕßµÄ×çÖä

ÇëÌṩһ¸ö¶ÔiµÄÉùÃ÷£¬½«ÏÂÃæµÄÑ­»·×ª±äΪһ¸öÎÞÏÞÑ­»·£º
while (i <= j && j <= i && i != j) {
}
àÞ£¬²»£¬²»ÒªÔÙ¸øÎÒ¿´ÆðÀ´²»¿ÉÄܵÄÑ­»·ÁË£¡Èç¹ûi <= j ²¢ÇÒ j <= i£¬i²»Êǿ϶¨µÈÓÚjÂð£¿ÕâÒ»ÊôÐÔ¶ÔʵÊý¿Ï¶¨ÓÐЧ¡£ÊÂʵÉÏ£¬ËüÊÇÈç´ËµØÖØÒª£¬ÒÔÖÁÓÚËüÓÐÕâÑùµÄ¶¨Ò壺ʵÊýÉϵÄ≤¹ØϵÊÇ·´¶Ô³ÆµÄ¡£JavaµÄ<=²Ù×÷·ûÔÚ5.0°æ֮ǰÊÇ·´¶Ô³ÆµÄ£¬µ«ÊÇÕâ´Ó5.0°æÖ®ºó¾Í²»ÔÙÊÇÁË¡£
Ö±µ½5.0°æ֮ǰ£¬JavaµÄÊý×ֱȽϲÙ×÷·û£¨<¡¢<=¡¢>ºÍ>=£©ÒªÇóËüÃǵÄÁ½¸ö²Ù×÷Êý¶¼ÊÇԭʼÊý×ÖÀàÐ͵ģ¨byte¡¢char¡¢short¡¢int¡¢long¡¢floatºÍdouble£©[JLS 15.20.1]¡£µ«ÊÇÔÚ5.0°æÖУ¬¹æ·¶×÷³öÁËÐ޸ģ¬Ð¹淶ÃèÊöµÀ£ºÃ¿Ò»¸ö²Ù×÷ÊýµÄÀàÐͱØÐë¿ÉÒÔת»»³ÉԭʼÊý×ÖÀàÐÍ[JLS 15.20.1£¬5.1.8]¡£ÎÊÌâÄѾÍÄÑÔÚÕâÀïÁË¡£
ÔÚ5.0°æÖУ¬×Ô¶¯°ü×°£¨autoboxing£©ºÍ×Ô¶¯·´°ü×°£¨auto-unboxing£©±»Ìí¼Óµ½ÁËJavaÓïÑÔÖС£Èç¹ûÄã¶ÔËüÃDz¢²»Á˽⣬Çë²é¿´£ºhttp://java.sun.com/j2se/5.0/docs/guide/language/autoboxing.html [Boxing]¡£<=²Ù×÷·ûÔÚԭʼÊý×ÖÀàÐͼ¯ÉÏÈÔÈ»ÊÇ·´¶Ô³ÆµÄ£¬µ«ÊÇÏÖÔÚËü»¹±»Ó¦Óõ½Á˱»°ü×°µÄÊý×ÖÀàÐÍÉÏ¡££¨±»°ü×°µÄÊý×ÖÀàÐÍÓУºByte¡¢Character¡¢Short¡¢Integer¡¢Long¡¢FloatºÍDouble¡££©<=²Ù×÷·ûÔÚÕâЩÀàÐ͵IJÙ×÷ÊýÉϲ»ÊÇ·´¶Ô³ÆµÄ£¬ÒòΪJavaµÄÅеȲÙ×÷·û£¨==ºÍ!=£©ÔÚ×÷ÓÃÓÚ¶ÔÏóÒýÓÃʱ£¬Ö´ÐеÄÊÇÒýÓÃIDµÄ±È½Ï£¬¶ø²»ÊÇÖµµÄ±È½Ï¡£
ÈÃÎÒÃǸü¾ßÌåһЩ£¬ÏÂÃæµÄÉùÃ÷¸³Óè±í´ïʽ(i <= j && j <= i && i != j)µÄֵΪtrue£¬´Ó¶ø½«Õâ¸öÑ­»·±ä³ÉÁËÒ»¸öÎÞÏÞÑ­»·£º
Integer i = new Integer(0);
Integer j = new Integer(0);
Ç°Á½¸ö×Ó±í´ïʽ£¨i <= j ºÍj <= i£©ÔÚiºÍjÉÏÖ´Ðнâ°üת»»[JLS 5.1.8]£¬²¢ÇÒÔÚÊý×ÖÉϱȽÏËù²úÉúµÄintÊýÖµ¡£iºÍj¶¼±íʾ0£¬ËùÒÔÕâÁ½¸ö×Ó±í´ïʽ¶¼±»¼ÆËãΪtrue¡£µÚÈý¸ö×Ó±í´ïʽ£¨i != j£©ÔÚ¶ÔÏóÒýÓÃiºÍjÉÏÖ´Ðбêʶ±È½Ï£¬ÒòΪËüÃǶ¼³õʼ»¯ÎªÒ»¸öеÄIntegerʵÀý£¬Òò´Ë£¬µÚÈý¸ö×Ó±í´ïʽͬÑùÒ²±»¼ÆËãΪtrue£¬Ñ­»·Ò²¾ÍÓÀÔ¶µØ»·ÈÆÏÂÈ¥ÁË¡£
Äã¿ÉÄÜ»á¸Ðµ½Ææ¹Ö£¬ÎªÊ²Ã´ÓïÑԹ淶ûÓÐÐÞ¸ÄΪ£ºµ±ÅеȲÙ×÷·û×÷ÓÃÓÚ±»°ü×°µÄÊý×ÖÀàÐÍʱ£¬ËüÃÇÖ´ÐеÄÊÇÖµ±È½Ï¡£´ð°¸ºÜ¼òµ¥£º¼æÈÝÐÔ¡£µ±Ò»ÖÖÓïÑÔ±»¹ã·ºÊ¹ÓÃÖ®ºó£¬ÒÔÎ¥·´ÏÖÓй淶µÄ·½Ê½È¥¸Ä±äÏÖÓгÌÐòµÄÐÐΪÊÇÈÃÈËÎÞ·¨½ÓÊܵġ£ÏÂÃæµÄ³ÌÐò¹ýÈ¥×ÜÊDZ£Ö¤¿ÉÒÔ´òÓ¡false£¬Òò´ËËü±ØÐë¼ÌÐø±£³Ö´ËÌØÕ÷£º
public class ReferenceComparison {
public static v


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

Ò»¸öJava³ÌÐòÔ±Ó¦¸ÃÕÆÎÕµÄ10Ïî¼¼ÄÜ


1¡¢Óï·¨£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼­Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
2¡¢ÃüÁ±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢ HtmlConverter¡¢jar¡¢ java¡¢javac¡¢javadoc¡¢javap¡¢javaw¡¢native2ascii¡¢serialver£¬Èç¹ûÕâЩÃüÁ ......

Java½â»ó2 25ÎÞÇéµÄÔöÁ¿²Ù×÷

ÏÂÃæµÄ³ÌÐò¶ÔÒ»¸ö±äÁ¿Öظ´µØ½øÐÐÔöÁ¿²Ù×÷£¬È»ºó´òÓ¡ËüµÄÖµ¡£ÄÇôÕâ¸öÖµÊÇʲôÄØ£¿
public class Increment {
public static void main(String[] args) {
int j = 0;
for (int i = 0; i < 100; i++)
j = j++;
System.out.println(j);
}
}
Õ§Ò»¿´£¬Õâ¸ö³ÌÐò¿ÉÄÜ» ......

Java Native Method[»¹Ã»À´µÃ¼°·­Òë]

The goal for this chapter is to introduce you to Java's native methods. If you are new to Java, you may not know what native methods are, and even if you are an experienced Java developer, you may not have had a reason to learn more about native methods. At the conclusion of this chapter you should ......

Java½â»ó3 29Ñ­»·ÕßµÄÐÂÄï

ÇëÌṩһ¸ö¶ÔiµÄÉùÃ÷£¬½«ÏÂÃæµÄÑ­»·×ª±äΪһ¸öÎÞÏÞÑ­»·£º
while (i != i) {
}
Õâ¸öÑ­»·¿ÉÄܱÈÇ°Ò»¸ö»¹ÒªÊ¹È˸е½À§»ó¡£²»¹ÜÔÚËüÇ°Ãæ×÷ºÎÖÖÉùÃ÷£¬Ëü¿´ÆðÀ´È·ÊµÓ¦¸ÃÁ¢¼´ÖÕÖ¹¡£Ò»¸öÊý×Ö×ÜÊǵÈÓÚËü×Ô¼º£¬¶ÔÂð£¿
¶Ô£¬µ«ÊÇIEEE 754¸¡µãËãÊõ±£ÁôÁËÒ»¸öÌØÊâµÄÖµÓÃÀ´±íʾһ¸ö²»ÊÇÊý×ÖµÄÊýÁ¿[IEEE 754]¡£Õâ¸öÖµ¾ÍÊÇNaN£¨“ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ