java ±àдº¯Êý ½»»»Á½¸ö»ù±¾±äÁ¿µÄÖµ
Java±àдһ¸öº¯Êý½»»»Á½¸ö±äÁ¿µÄÖµ
Javaº¯ÊýÔÚ´«µÝ¹ý³ÌÖÐÖ»Äܹ»´«Öµ£¬²»ÄÜ´«Ö·¡£ÕâÑù£¬º¯ÊýµÄ²ÎÊýÔÚº¯ÊýÄÚ²¿×öÈκα仯¾Í¶¼²»»á·´Ó³µ½Íⲿµ÷ÓÃÕßÀ´¡£ËùÒÔ½â¾öÖ®µÀ¾ÍÊÇÒªÕÒµ½Òª½»»»¶ÔÏóµÄÒýÓ᣶ÔÓÚÆÕͨµÄÖµÀàÐÍ£¬Ïñint»òÕßdoubleÕâÑùµÄ¿ÉÒԸĴ«ËûÃǵİü×°ÀàIntegerºÍDouble¡£¶ø¶ÔÓÚ±¾À´¾ÍÊÇÒýÓÃÀàÐ͵ĶÔÏó£¬ÔòÐèÒª¶ÔËûÃÇÔÙ°üÒ»²ã¡£Ò»¸öºÃµÄ·½·¨¾ÍÊǽ«²ÎÊýÁбí¸Ä³ÉÊý×飬ÀýÈçvoid
swap(Object[]); //Êý×ÖÓ¦µ±Ö»°üº¬Á½¸öÔªËØ
ÏÂÃæÒÔÕûÊýΪÀý½éÉÜÈýÖÖ½»»»Á½¸öÖµµÄËã·¨£¬¼ÙÉèÓÐÕâÑùµÄÉùÃ÷£º
void swap(Integer a, Integer b)
·½·¨Ò»£º²ÉÓÃÁÙʱ±äÁ¿
int temp = a.value;
a.value = b.value;
b.value = temp;
·½·¨¶þ£ºÊ¹ÓÃÒì»ò
a.value ^= b.value;
b.value ^= a.value;
a.value ^= b.value;
·½·¨Èý£ºÊ¹ÓÃÇóºÍºÍÇó²î
a.value = a.value + b.value;
b.value = a.value - b.value;
a.value = a.value - b.value;
Ïà¹ØÎĵµ£º
¼ÇµÃÔÚcsdnµÄij¸öÌû×ÓÖÐÌáµ½¼ÆËã½×³ËµÄÌÖÂÛ£¬µ±Ê±ÓкܶàÈ˶¼Ìá³öÁË×Ô¼ºµÄËã·¨£¬Ã¿¸öÈ˶¼ÏëµÄºÜÖÜÈ«¡£
ÕâÁ½ÌìÕýºÃ×Ô¼º¿´µ½ÁËÏà¹ØµÄÎÄÕ£¬ÄÇô×ܽáÕûÀíһϣ¬ÒÔ¹©´ó¼Ò²Î¿¼£¬Ò²ÎªÁË×Ô¼ºµÄ֪ʶ×ܽᡣ
ÔÚÊýѧÖУ¬Ö»ÓзǸºÕûÊý²ÅÓн׳ËÔËË㣬Òâ˼¾ÍÊÇ˵¸¡µãÊý¡¢¸ºÕûÊý¶¼²»ÄܽøÐмÆË㣬ÄÇôÎÒÃÇÔÚ¿¼ÂǼÆËãʱ£¬Ð¡ÓÚ0µÄÊý×ÖÎÒÃÇÊDz ......
ÔÚFirefox 3.6ÖУ¬µ±½¹µãÔÚflash»òÕßjava applet¶ÔÏóÉÏʱ£¬»á³öÏÖÒ»¸ö»·ÈƶÔÏóµÄÐéÏß¿ò£¬µ±½«flashÓëjava applet¶ÔÏóµÄ´óСÉè³É100%ʱ£¬µã»÷¶ÔÏóºóÒ³Ãæ»á³öÏÖ¹ö¶¯Ìõ£¬Ó°ÏìÏÔʾЧ¹û£¬½â¾öµÄ·½·¨ÊÇʹÓÃÈçϵÄcss¶¨Ò壺
:focus {
outline: 0;
}
ÕâÑùÔÚ¸÷¸ö²»Í¬µÄä¯ÀÀÆ÷ÖÐÏÔʾµÄЧ¹û¶¼Äܱ£³ÖÒ»Ö¡£ ......
£¨
1
£©
+=
:sum += 1;
Ï൱ÓÚ
sum = sum + 1;
£¨
2
£©
++ --
:i++ i
¼Ó
1, i-- i
¼õ
1, ++
»ò
—
·ÅÔÚÊýÖµºó£¬±íʾִÐÐÔËËãºó¼Ó£¨¼õ£©
1
£¬·´ÕýÊýֵǰ±íʾִÐÐÔËËãÇ°¼Ó£¨¼õ£©
1
£¨
3
£©
?
: :
int n = a<10?1:2
±íʾÈç¹û
a
СÓÚ
10
Ôò
n
µÈÓÚ
1
·ñÔòµÈÓÚ
2
£¨
4
......