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

JavaλÔËËã·ûºÅ²Ù×÷£¨×ª£©

Java ¶¨ÒåµÄλÔËË㣨bitwise operators £©Ö±½Ó¶ÔÕûÊýÀàÐ͵Äλ½øÐвÙ×÷£¬ÕâЩÕûÊýÀàÐÍ°üÀ¨long£¬int£¬short£¬char£¬and byte ¡£±í4-2 ÁгöÁËλÔËË㣺
±í4.2 λÔËËã·û¼°Æä½á¹û
ÔËËã·û ½á¹û
~ °´Î»·Ç£¨NOT£©£¨Ò»ÔªÔËË㣩
& °´Î»Ó루AND£©
| °´Î»»ò£¨OR£©
^ °´Î»Òì»ò£¨XOR£©
>> ÓÒÒÆ
>>> ÓÒÒÆ£¬×ó±ß¿Õ³öµÄλÒÔ0Ìî³ä
ÔËËã·û ½á¹û
<< ×óÒÆ
&= °´Î»Ó븳ֵ
|= °´Î»»ò¸³Öµ
^= °´Î»Òì»ò¸³Öµ
>>= ÓÒÒƸ³Öµ
>>>= ÓÒÒƸ³Öµ£¬×ó±ß¿Õ³öµÄλÒÔ0Ìî³ä
<<= ×óÒƸ³Öµ
Ðø±í
¼ÈȻλÔËËã·ûÔÚÕûÊý·¶Î§ÄÚ¶Ôλ²Ù×÷£¬Òò´ËÀí½âÕâÑùµÄ²Ù×÷»á¶ÔÒ»¸öÖµ²úÉúʲôЧ¹ûÊÇÖØÒªµÄ¡£¾ßÌåµØ˵£¬ÖªµÀJava ÊÇÈçºÎ´æ´¢ÕûÊýÖµ²¢ÇÒÈçºÎ±íʾ¸ºÊýµÄÊÇÓÐÓõġ£Òò´Ë£¬ÔÚ¼ÌÐøÌÖÂÛ֮ǰ£¬ÈÃÎÒÃǼò¶Ì¸ÅÊöÒ»ÏÂÕâÁ½¸ö»°Ìâ¡£
ËùÓеÄÕûÊýÀàÐÍÒÔ¶þ½øÖÆÊý×ÖλµÄ±ä»¯¼°Æä¿í¶ÈÀ´±íʾ¡£ÀýÈ磬byte ÐÍÖµ42µÄ¶þ½øÖÆ´úÂëÊÇ00101010 £¬ÆäÖÐÿ¸öλÖÃÔÚ´Ë´ú±í2µÄ´Î·½£¬ÔÚ×îÓұߵÄλÒÔ20¿ªÊ¼¡£Ïò×óÏÂÒ»¸öλÖý«ÊÇ21£¬»ò2£¬ÒÀ´ÎÏò×óÊÇ22£¬»ò4£¬È»ºóÊÇ8£¬16£¬32µÈµÈ£¬ÒÀ´ËÀàÍÆ¡£Òò´Ë42ÔÚÆäλÖÃ1£¬3£¬5µÄֵΪ1£¨´ÓÓÒ±ßÒÔ0¿ªÊ¼Êý£©£»ÕâÑù42ÊÇ21+23+25µÄºÍ£¬Ò²¼´ÊÇ2+8+32 ¡£
ËùÓеÄÕûÊýÀàÐÍ£¨³ýÁËchar ÀàÐÍÖ®Í⣩¶¼ÊÇÓзûºÅµÄÕûÊý¡£ÕâÒâζ×ÅËûÃǼÈÄܱíʾÕýÊý£¬ÓÖÄܱíʾ¸ºÊý¡£Java ʹÓôó¼ÒÖªµÀµÄ2µÄ²¹Â루two's complement £©ÕâÖÖ±àÂëÀ´±íʾ¸ºÊý£¬Ò²¾ÍÊÇͨ¹ý½«ÓëÆä¶ÔÓ¦µÄÕýÊýµÄ¶þ½øÖÆ´úÂëÈ¡·´£¨¼´½«1±ä³É0£¬½«0±ä³É1£©£¬È»ºó¶ÔÆä½á¹û¼Ó1¡£ÀýÈ磬-42¾ÍÊÇͨ¹ý½«42µÄ¶þ½øÖÆ´úÂëµÄ¸÷¸öλȡ·´£¬¼´¶Ô00101010 È¡·´µÃµ½11010101 £¬È»ºóÔÙ¼Ó1£¬µÃµ½11010110 £¬¼´-42 ¡£Òª¶ÔÒ»¸ö¸ºÊý½âÂ룬Ê×ÏȶÔÆäËùÓеÄλȡ·´£¬È»ºó¼Ó1¡£ÀýÈç-42£¬»ò11010110 È¡·´ºóΪ00101001 £¬»ò41£¬È»ºó¼Ó1£¬ÕâÑù¾ÍµÃµ½ÁË42¡£
Èç¹û¿¼Âǵ½ÁãµÄ½»²æ£¨zero crossing £©ÎÊÌ⣬Äã¾ÍÈÝÒ×Àí½âJava £¨ÒÔ¼°ÆäËû¾ø´ó¶àÊýÓïÑÔ£©ÕâÑùÓÃ2µÄ²¹ÂëµÄÔ­Òò¡£¼Ù¶¨byte ÀàÐ͵ÄÖµÁãÓÃ00000000 ´ú±í¡£ËüµÄ²¹ÂëÊǽö½ö½«ËüµÄÿһλȡ·´£¬¼´Éú³É11111111 £¬Ëü´ú±í¸ºÁã¡£µ«ÎÊÌâÊǸºÁãÔÚÕûÊýÊýѧÖÐÊÇÎÞЧµÄ¡£ÎªÁ˽â¾ö¸ºÁãµÄÎÊÌ⣬ÔÚʹÓÃ2µÄ²¹Âë´ú±í¸ºÊýµÄֵʱ£¬¶ÔÆäÖµ¼Ó1¡£¼´¸ºÁã11111111 ¼Ó1ºóΪ100000000 ¡£µ«ÕâÑùʹ1λ̫¿¿×ó¶ø²»ÊʺϷµ»Øµ½byte ÀàÐ͵ÄÖµ£¬Òò´ËÈËÃǹ涨£¬-0ºÍ0µÄ±íʾ·½·¨Ò»Ñù£¬-1µÄ½âÂëΪ11111111 ¡£¾¡¹ÜÎÒÃÇÔÚÕâ¸öÀý×ÓʹÓÃÁËbyte ÀàÐ͵ÄÖµ£¬µ«Í¬ÑùµÄ»ù±¾µÄÔ­ÔòÒ²ÊÊÓÃÓÚËùÓÐJava µÄÕû


Ïà¹ØÎĵµ£º

Java I/O³£ÓÃÁ÷ʾÀý

package io;
import java.io.*;
/**
* @author ¸ßÕíÎâÓÇ
* ÀûÓûº³åÇøÔ­Àí,BufferedInputStream,
* ʵÏÖµÄÎļþ×Ö½ÚÁ÷¶ÁÈ¡¹¦ÄÜʾ·¶
*
*/
public class BufferedInOutputStream {
public BufferedInOutputStream() {
ioTest2();
}
public void ioTest2() {
FileInputStream in = null ;
BufferedInput ......

ÓÐÓõÄjava¿ª·¢Ð¡¹¤¾ß¼°jar°ü

    ÒòΪ¾­³£°áÀ´°áÈ¥£¬×Ô¼ºÊÕ¼¯µÄºÃµÄ¶«¶«Ò²¾­³£¸ú×ÅÎҰᣬ¾­³£ÕÒ²»µ½¡£½ñÌìÕûÀíÁËÕûÀí£¬ÒÔºó°Ñ×Ô¼ºÊÕ¼¯µÄһЩС¶«Î÷ÉÏ´«µ½CSDNµÄÏÂÔØƵµÀ“ÎÒµÄ×ÊÔ´”ÀïÈ¥£¨http://xlw2003.download.csdn.net/£©¡£ÒÔºó×Ô¼ºÏëÓÃÁË£¬Ò²ÖªµÀÉÏÄĶùÕÒÈ¥¡£Í¬Ê±ÄØ£¬ÆäËûÅóÓÑÒ²¿ÉÒÔÏÂÔØÀ´Óᣠ......

Berkely DB Java Editionѧϰ±Ê¼ÇÒ»

Berkely DB¶ÔÓڸ߲¢·¢¡¢ÒªÇóËٶȿìµÄÓ¦ÓÃÀ´ËµÊǸö²»´íµÄÑ¡Ôñ£¬mysql¾ÍÊÇÓÃBDBʵÏÖµÄ(mysqlµÄºǫ́) £¬mysql¿ì£¬BDB±Èmysql»¹Òª¿ìN±¶¡£BDBÊÇÒ»ÖÖǶÈëʽµÄ¡¢·Ç¹ØϵÊý¾Ý¿â£¬ËüÓëÆäËûµÄ¹ØϵÊý¾Ý¿âRMDBS²»Í¬,ËüûÓÐÌṩSQL,¶øÊÇÌṩÁË×Ô¼ºµÄ·ÃÎʽӿڡ£×÷ΪһÖÖǶÈëʽµÄÊý¾Ý¿â£¬ËüÊǽø³ÌÄÚģʽµÄ£¬Ò²¾ÍÊÇ˵ËüºÍÓ¦ÓóÌÐòÔÚͬһÄÚ´æ¿ ......

JavaÖжÑÓëÕ»µÄÇø±ð

Õ»Óë¶Ñ¶¼ÊÇJavaÓÃÀ´ÔÚRAMÖдæ·ÅÊý¾ÝµÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯¹ÜÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£
JavaµÄ¶ÑÊÇÒ»¸öÔËÐÐʱÊý¾ÝÇø,ÀàµÄ¶ÔÏó´ÓÖзÖÅä¿Õ¼ä¡£ÕâЩ¶ÔÏóͨ¹ýnew¡¢newarray¡¢anewarrayºÍmultianewarrayµÈÖ¸ÁÁ¢£¬ËüÃDz»ÐèÒª³ÌÐò´úÂëÀ´ÏÔʽµÄÊÍ·Å¡£¶ÑÊÇÓÉÀ¬»ø»ØÊÕÀ´¸ºÔðµÄ£¬¶ÑµÄÓÅÊÆÊÇ¿ÉÒÔ¶¯Ì¬µØ·ÖÅäÄÚ´æ´ ......

JAVAÊý¾Ý¿âÁ¬½Ó

 String uid=jTextField.getText();
 String upass=jTextField.getText();
 try {
      Class.forName("oracle.jdbc.driver.OracleDriver");//Òªµ¼ÈëÍⲿ°ü
      Connection conn=DriverManager.getConnection("jdbc:oracle:thin:scott ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ