Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖеÄtoString() ·½·¨£¨¶à¿´±¾ÎĵÄÀý×Ó£¡£©

toString() ·½·¨£º
    toString()·½·¨ÔÚObjectÀàÖж¨Ò壬Æä·µ»ØÖµÊÇStringÀàÐÍ£¬ÃèÊöµ±Ç°¶ÔÏóµÄÓйØÐÅÏ¢
    ÔÚ½øÐÐStringÓëÆäËüÀàÐÍÊý¾ÝµÄÁ¬½Ó²Ù×÷ʱ£¬×Ô¶¯µ÷ÓÃtoString()·½·¨
    ¿ÉÒÔ¸ù¾ÝÐèÒªÔÚÓû§×Ô¶¨ÒåÀàÐÍÖÐÖØдtoString()·½·¨
    »ù±¾ÀàÐÍÊý¾Ý× ......

Use Java Mail API to Send Email

private String smtpHost;
private String smtpUserName;
private String smtpPassword;
public void sendEmail(String fromAddress, List<String> toAddresses, List<String> ccAddresses,
String subject, String message) {
Properties props = new Properties();
props.put("mail.smtp.host", smt ......

Agile Java ѧϰ±Ê¼Ç£¨Ò»£© Ãô½Ý×ÛÊö

     µÚÒ»´Î³¢ÊÔдѧϰ±Ê¼Ç£¬ÒòΪ¾õµÃÒÔǰѧ¹ýµÄ¶«Î÷³¤Ê±¼ä²»ÓþͶ¼ÍüÁË¡£Ò²²»ÖªµÀÕâÑù×öÖµ²»ÖµµÃ£¬ÒòΪ±Ï¾¹Ð´Ñ§Ï°±Ê¼Ç»á»¨·ÑÒ»¶¨µÄʱ¼ä£¬¶ÔÓÚÒ»¸öÈí¼þ¹¤³ÌרҵµÄ´óÈýѧÉúÀ´Ëµ£¬¿Î³Ì·±ÖØÊÇÖÚËùÖÜÖªµÄ¡£¶øÇÒÎÒµÄÎıÊÓÖ²»ºÃ£¬Ê±³£Ð´×ÅдמͲ»ÖªµÀ¸ÃÕâôдÁË£¬ÊôÓÚÄÇÖÖÐÄÖª¶ÇÃ÷¾ÍÊÇ˵²»³öÀ´µÄÀàÐÍ¡£²»¹ý£ ......

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ºÅ