JavaÖÐbooleanÀàÐ͵ÄλÔËËã
JavaÈÕ»ýÔÂÀÛ-1£ºJavaÖÐbooleanÀàÐ͵ÄλÔËËã
1. Ê×ÏȻعËÒ»ÏÂjavaÖеÄ8Öлù±¾ÀàÐͼ°Æä´æ´¢ËùÕ¼ÓõÄbitÊý¡£
ÀàÐÍ
bitÊý
byte
8
short
16
int
32
float
32
long
64
double
64
char
16
boolean
1
2. ÔٻعËÒ»ÏÂjavaµÄÔËËã·ûºÍÓÅÏȼ¶
ÔËËã·û
ÓÅÏȼ¶
ºó׺ÔËËã·û
expr
++ expr
--
Ò»ÔªÔËËã·û
++expr
--expr
+expr
-expr
~ !
³ËÔËËã·û
* / %
¼ÓÔËËã·û
+ -
λÒÆÔ¤Ëã·û
<< >> >>>
¹ØϵÔËËã·û
< > <= >= instanceof
ÏàµÈÔËËã·û
== !=
λÓë
&
λÒì»ò
^
λ»ò
|
Âß¼Óë
&&
Âß¼»ò
||
ÈýÔªÔËËã·û
? :
¸³ÖµÔËËã·û
= += -= *= /= %= &= ^= |= <<= >>= >>>=
3. ÎÒÃÇÖªµÀÂß¼ÓëºÍÂß¼»òÔÚÔËËãʱִÐжÌ·ÔËË㣬µ«Êǵ±Ö´ÐÐbooleanÀàÐ͵ÄλÔËËãʱ£¬Æä½á¹ûÒ²ÊÇbooleanÐÍ£¬ÔËËã½á¹ûÓëÖ´ÐÐÂß¼ÔËËãµÄ½á¹ûµÄÏàͬ£¬µ«ÊÇλÔËËã²¢²»Ö´ÐжÌ·ÔËË㡣ͨ¹ýÏÂÃæµÄÀý×ÓÎÒÃÇ¿ÉÒÔ¿´µ½£º
/**
* desc:
* test bitewise<br>
* ----------------------------------------------------------------------------
* ver. date who what
* ----------------------------------------------------------------------------
* 0.0.1 2010-1-3 leeinneu add:test bitewise
* ----------------------------------------------------------------------------
*/
package cn.leeinneu.daily._2010_01_03;
import static cn.leeinneu.utils.Print.*;
/**
* @author leeinneu
*
* BiteWiseTest
*/
public class BiteWiseTest {
/**
* @param args
*/
public static void main(String[] args) {
// Boolean Statement
prtln("Boolean Statement");
prt("1. boolAnd:");
prtln(isTrue() && isFalse());
prt("2. boolOr:");
prtln(isTrue
Ïà¹ØÎĵµ£º
ÊÂʵÉÏÍøÂç±à³Ì¼òµ¥µÄÀí½â¾ÍÊÇÁ½Ì¨¼ÆËã»úÏ໥ͨѶÊý¾Ý¶øÒÑ£¬¶ÔÓÚ³ÌÐòÔ±¶øÑÔ£¬È¥ÕÆÎÕÒ»ÖÖ±à³Ì½Ó¿Ú²¢Ê¹ÓÃÒ»ÖÖ±à³ÌÄ£ÐÍÏà¶Ô¾Í»áÏԵüòµ¥µÄ¶àÁË£¬Java SDKÌṩһЩÏà¶Ô¼òµ¥µÄApiÀ´Íê³ÉÕâЩ¹¤×÷¡£Socket¾ÍÊÇÆäÖÐÖ®Ò»£¬¶ÔÓÚJava¶øÑÔ£¬ÕâЩApi´æÔÚÓëjava.net Õâ¸ö°üÀïÃ棬Òò´ËÖ»Òªµ¼ÈëÕâ¸ö°ü¾Í¿ÉÒÔ×¼±¸ÍøÂç±à³ÌÁË¡£
http://java.c ......
·â×°ÀàÒ²½Ð°ü×°À࣬ÊÇÕë¶Ô°ËÖÖ»ù±¾¶¨ÒåÏàÓ¦µÄÒýÓÃÀàÐÍ¡£
»ù±¾Êý¾ÝÀàÐÍ ·â×°Àà
boolean &nbs ......
String posttime=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:sss").format( java.util.Calendar.getInstance().getTime() );
1. Java¼ÆËãʱ¼äÒÀ¿¿1970Äê1ÔÂ1ÈÕ¿ªÊ¼µÄºÁÃëÊý.   ......
¹Ø¼ü×Öfinal£º
ÔÚJavaÖÐÉùÃ÷Àà¡¢ÊôÐԺͷ½·¨Ê±£¬¿ÉʹÓùؼü×ÖfinalÀ´ÐÞÊΡ£
final±ê¼ÇµÄÀ಻Äܱ»¼Ì³Ð¡£
final±ê¼ÇµÄ·½·¨²»Äܱ»×ÓÀàÖØд¡£
final±ê¼ÇµÄ±äÁ¿(³ÉÔ±±äÁ¿»ò¾Ö²¿±äÁ¿)¼´³ÉΪ³£Á¿£¬Ö»Äܸ³ÖµÒ»´Î¡£
final±ê¼Çµ ......