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

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ÍøÂç±à³ÌµÄͨÐÅ»úÖÆ

ÊÂʵÉÏÍøÂç±à³Ì¼òµ¥µÄÀí½â¾ÍÊÇÁ½Ì¨¼ÆËã»úÏ໥ͨѶÊý¾Ý¶øÒÑ£¬¶ÔÓÚ³ÌÐòÔ±¶øÑÔ£¬È¥ÕÆÎÕÒ»ÖÖ±à³Ì½Ó¿Ú²¢Ê¹ÓÃÒ»ÖÖ±à³ÌÄ£ÐÍÏà¶Ô¾Í»áÏԵüòµ¥µÄ¶àÁË£¬Java SDKÌṩһЩÏà¶Ô¼òµ¥µÄApiÀ´Íê³ÉÕâЩ¹¤×÷¡£Socket¾ÍÊÇÆäÖÐÖ®Ò»£¬¶ÔÓÚJava¶øÑÔ£¬ÕâЩApi´æÔÚÓëjava.net Õâ¸ö°üÀïÃ棬Òò´ËÖ»Òªµ¼ÈëÕâ¸ö°ü¾Í¿ÉÒÔ×¼±¸ÍøÂç±à³ÌÁË¡£
http://java.c ......

javaÖеķâ×°Àà

·â×°ÀàÒ²½Ð°ü×°À࣬ÊÇÕë¶Ô°ËÖÖ»ù±¾¶¨ÒåÏàÓ¦µÄÒýÓÃÀàÐÍ¡£
      »ù±¾Êý¾ÝÀàÐÍ             ·â×°Àà
          boolean           &nbs ......

Javaʱ¼äº¯Êý

String   posttime=new   java.text.SimpleDateFormat("yyyy-MM-dd   HH:mm:sss").format(   java.util.Calendar.getInstance().getTime()   );
1. Java¼ÆËãʱ¼äÒÀ¿¿1970Äê1ÔÂ1ÈÕ¿ªÊ¼µÄºÁÃëÊý.                 ......

javaÖеÄfinal£¬static¹Ø¼ü×Ö

¹Ø¼ü×Öfinal£º
    ÔÚJavaÖÐÉùÃ÷Àà¡¢ÊôÐԺͷ½·¨Ê±£¬¿ÉʹÓùؼü×ÖfinalÀ´ÐÞÊΡ£
    final±ê¼ÇµÄÀ಻Äܱ»¼Ì³Ð¡£
    final±ê¼ÇµÄ·½·¨²»Äܱ»×ÓÀàÖØд¡£
    final±ê¼ÇµÄ±äÁ¿(³ÉÔ±±äÁ¿»ò¾Ö²¿±äÁ¿)¼´³ÉΪ³£Á¿£¬Ö»Äܸ³ÖµÒ»´Î¡£
    final±ê¼Çµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ